What happen if i don't use triple quote's in python and jus press enter. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What happen if i don't use triple quote's in python and jus press enter.

print("Hello guys: how are you")

27th May 2018, 1:31 PM
Sharoz Ijaz
Sharoz Ijaz - avatar
5 Answers
+ 2
Then you get an error because Python doesn't like a line ending before you close the quote :)
27th May 2018, 7:34 PM
Just A Rather Ridiculously Long Username
+ 2
strings must always be in quotes. otherwise, you will raise syntax errors in your code.
2nd Jun 2018, 8:11 PM
Snr Oscar Ghitto
Snr Oscar Ghitto - avatar
+ 1
could you please be more specific with the question
27th May 2018, 2:42 PM
Markus Kaleton
Markus Kaleton - avatar
0
thanks everyone
27th May 2018, 7:36 PM
Sharoz Ijaz
Sharoz Ijaz - avatar
0
you could do print("Hello guys: \ how are you?")
27th May 2018, 7:40 PM
Markus Kaleton
Markus Kaleton - avatar