Question : python multi line print
Answered by : chips-godt
print(''' _ _ _ _ _ _ _ | | | | | | | | | | | | | |__| | ___| | | ___ __ _____ _ __| | __| | | | __ |/ _ \ | |/ _ \ \ \ /\ / / _ \| '__| |/ _` | | | | | | __/ | | (_) | \ V V / (_) | | | | (_| |_| |_| |_|\___|_|_|\___/ \_/\_/ \___/|_| |_|\__,_(_)
''')
Source : | Last Update : Sat, 23 Apr 22
Question : print multiple lines python
Answered by : roderick
#You can use \n to create a carriage return.
print("first line\nSecond line")
#Or use the following syntax to replace the commas with \n
#to create carriage returns for each line.
print("first line", "second line", sep="\n")
#Or use triple quotation marks at the start and end of
#the text and format the text how you want it to appear.
print("""
Line1
Line2
""")
Source : | Last Update : Sun, 24 Nov 19
Question : how to make python print 2 line text in one code
Answered by : filthy-fox-79x1cic59cvg
print("first\nsecond")
#or
print("""
line1
line2
line3
""")
#or
print("line1","line2",sep = "\n")
Source : | Last Update : Sat, 07 Aug 21
Question : how to print multiple strings on one line in python
Answered by : leif-teigen
number1 = 6
number2 = 10
print(number1, " + ", number2
Source : | Last Update : Fri, 18 Sep 20