How can I use the triple column '"" instead of \n in the program below | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How can I use the triple column '"" instead of \n in the program below

gndr = input("Are you male or female? \n") if gndr == "male": print(gndr) print("Thank you, Sir. \n") elif gndr == "female": print(gndr) print("Thank you, Ma'am. \n") else: print("Please insert male or female! \n") ag = int(input("How old are you? \n")) if ag <= 17: print(ag) print("Underage Access Not Allowed. \n") else: if ag >= 18: print(ag) print("Access Granted. \n")

23rd Apr 2020, 11:33 PM
Ojo Sampson
Ojo Sampson - avatar
1 Answer
+ 1
Just for final \n in your string, that doesn't be useful... However, just for the example: if gndr == "male": print(gndr) print("""Thank you, Sir. """) Anyway, that's not called triple 'column' but 'quote': columns are "upright pillar, typically cylindrical, supporting an arch, entablature, or other structure or standing alone as a monument" or "vertical division of a page or text" (or table data)... Punctuation is spelled 'colon' and is the double vertical dots sign (:) ^^
25th Apr 2020, 2:58 AM
visph
visph - avatar