0
When u want to print a string must u put it in brackets
4 Respostas
+ 3
To print any statement on screen we use Python function Print (). So whatever you want to print string, integer or float you need to use print function.
#Print a String
print ("This is a String ")
#Print an Integer
I = 25
print (I)
Or
print (33)
#Print a floating Number
f = 5.5
Print (f)
Or
Print (7.5)
+ 1
that's one of the difference between python 3.x and python 2.x ,it's compulsory in the former.
0
In python 3.x whatever you want to print it should be enclosed in brackets.
example,
print("Google Goggles")
a=10
print(a)
0
thx guys