0
Can someone help me (I want to know if u can use alot of print statements?)
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.'
)
+ 4
You can do print("Hi world","Ready to start the day")
+ 3
Yes but I don't really get what you are trying to do by placing ...
+ 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")
+ 3
No that's invalid syntax
0
Can u do print statements next to each other. Like
Print("Hi world),Print("Ready to start the day")
0
I guess that answers my question thank you âșfor helping me