0

Can someone help me (I want to know if u can use alot of print statements?)

https://code.sololearn.com/cgDz5Tzba341/?ref=app

7th Jun 2020, 8:46 AM
DeadEye UNT
DeadEye UNT - avatar
7 Answers
+ 1
You can write statements next to each other using semicolon: print('Hello'); print('World') Better not to do it though, because it gets hard to read. When I want to print a longer text, I prefer to write just one print statement and break up the string. print( 'This is a long output that ' 'looks pretty in the code and ' 'will still be handed out as ' 'one single string.' )
7th Jun 2020, 9:12 AM
HonFu
HonFu - avatar
+ 4
You can do print("Hi world","Ready to start the day")
7th Jun 2020, 8:55 AM
Abhay
Abhay - avatar
+ 3
Yes but I don't really get what you are trying to do by placing ...
7th Jun 2020, 8:50 AM
Abhay
Abhay - avatar
+ 3
Just do it this way if is_hot: print("It's a hot day") print("Wear jacket man's not hot") print("Never.hot") print("Drink plenty of water")
7th Jun 2020, 8:50 AM
Abhay
Abhay - avatar
+ 3
No that's invalid syntax
7th Jun 2020, 8:55 AM
Abhay
Abhay - avatar
0
Can u do print statements next to each other. Like Print("Hi world),Print("Ready to start the day")
7th Jun 2020, 8:52 AM
DeadEye UNT
DeadEye UNT - avatar
0
I guess that answers my question thank you â˜șfor helping me
7th Jun 2020, 8:57 AM
DeadEye UNT
DeadEye UNT - avatar