"" and not ' '? Also semicolons? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

"" and not ' '? Also semicolons?

Should I use print("Hello world!") or print('Hello world!')? Also why is there no semicolon needed? Thanks!

23rd Aug 2020, 12:33 AM
Sahiba Kaur
Sahiba Kaur - avatar
1 Answer
+ 3
Python uses newline character as a statement terminator instead of ";".
23rd Aug 2020, 12:41 AM
Arsenic
Arsenic - avatar