0

Can we create a multiple lines of prints in a single print statement like in other languages we use"\n"

12th Oct 2016, 5:39 AM
sai
6 Réponses
+ 2
I recommend you to use triple ", example: print("""this will print all, regardless of the lines""") Regards
12th Oct 2016, 5:47 AM
Santiago Brescia
Santiago Brescia - avatar
+ 1
1) You can use the number you want, Infinites! Example print("asdasd" + """1 2 3 4""" + "end") 2)Yes, using \n. Example: print('Line1 \n Line2 \n Line3' + 'also you can add more words \n and lines' + """"and combine with quotes""")
12th Oct 2016, 6:22 AM
Santiago Brescia
Santiago Brescia - avatar
+ 1
yes, you can
12th Oct 2016, 9:32 AM
Fhatuwani Luvhengo
Fhatuwani Luvhengo - avatar
0
Sorry but I don't understand your question...
12th Oct 2016, 6:06 AM
Santiago Brescia
Santiago Brescia - avatar
0
To print a statement we will use quotes(" ") so my question is 1)in a single print statement how many quotes(" ")we can use 2)without quotes(" ")can we run a print line with multiple statements like you a gave an example above
12th Oct 2016, 6:11 AM
sai
0
thanks for the answer I got it
12th Oct 2016, 6:27 AM
sai