0

When u want to print a string must u put it in brackets

16th Nov 2016, 3:48 AM
RONALD DOSUNMU
RONALD DOSUNMU - avatar
4 Réponses
+ 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)
16th Nov 2016, 6:52 AM
Waqas Asghar Bhalli
Waqas Asghar Bhalli - avatar
+ 1
that's one of the difference between python 3.x and python 2.x ,it's compulsory in the former.
19th Nov 2016, 11:17 AM
Adekunle Oluwaseun Oladele
Adekunle Oluwaseun Oladele - avatar
0
In python 3.x whatever you want to print it should be enclosed in brackets. example, print("Google Goggles") a=10 print(a)
16th Nov 2016, 3:59 AM
Nagendra Prajwal
Nagendra Prajwal - avatar
0
thx guys
20th Nov 2016, 9:58 AM
RONALD DOSUNMU
RONALD DOSUNMU - avatar