How do I combine 2 print thingys(what do you call em) in python so that they still come in 2 separate lines? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How do I combine 2 print thingys(what do you call em) in python so that they still come in 2 separate lines?

For example, instead of writing print(bruh) print(dood) Is there something I can do (like """ or /n) to use just one print statement(Is that what you call em?) so that the output is still bruh dood (dood in the second line)

22nd Jul 2019, 1:30 PM
ERROR_404
ERROR_404 - avatar
2 Answers
+ 4
a = 17 b = 29 c = 42 print(a,b,c,sep="\n") Output: 17 29 42
22nd Jul 2019, 2:32 PM
Diego
Diego - avatar
+ 1
Diego thanks dood!
22nd Jul 2019, 2:52 PM
ERROR_404
ERROR_404 - avatar