How to print in python (a) print (' one ') (b) print ("one ") . Which are correct please answer | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 1

How to print in python (a) print (' one ') (b) print ("one ") . Which are correct please answer

#code #solo learn

5th Mar 2021, 10:04 AM
Vivek
Vivek - avatar
6 Réponses
0
no problem man
5th Mar 2021, 10:32 AM
Alexander Crum
Alexander Crum - avatar
+ 2
Both should output your text. When working with strings single and double quotation marks work. :)
5th Mar 2021, 10:24 AM
Alexander Crum
Alexander Crum - avatar
+ 2
Thanks Boos ❤️
5th Mar 2021, 10:30 AM
Vivek
Vivek - avatar
0
I agree with Alexander Crum Python accepts both variants of quotation marks
5th Mar 2021, 10:28 AM
Rik Wittkopp
Rik Wittkopp - avatar
0
Alexander which country you live bro..
5th Mar 2021, 10:34 AM
Vivek
Vivek - avatar
0
you could also use multilines string by enclosing them in triple quotes (either single or double): print("""Hello, World!""")
5th Mar 2021, 11:58 AM
visph
visph - avatar