Python
Python 3.6.0 ( ). . PyCharm Community JetBrains ( ).
: !
1) PyCharm.
2)
3) . . , , , .
4) , , Python .
5) .
6) , .
7) .
8) .
.
Python , . ? , Python .
Python . :
1. () True False.
2. (int) (float).
3. ( HTML )
4. ( JPEG)
5. .
6. -.
:
text = 'Hello Guys';text = "It's Python's time!"
text = '''You can do many cool thins with strings''';
:
x = 5;
y = 4.5;
c = (x - y); # = 0.5
c = x / 2; # = 2.5
c = int(x / 2); # = 2 #
c = float(5); # = 5.0 #
text = 'Hello Guys';
print("Python says ", text);
print("Python says %s. Welcome!" % text);
print("Lets do some math: 10 - 5/2 = ", 10 - 5 / 2);
print("Lets do some math: 10 - 5/2 = %d is the result!" % (10 - 5 / 2));
print("You can %s many %s words" % ("enter", "different"));
print("This line will be printed five times" * 5);
,
my_text = input(); # my_textx = int(input()); #
|
|