+ 5

How to print a given string in the pattern shown below ( using python programming language)

Just as my string is - python , then it should print it as - P N Y O T H

19th Sep 2018, 3:59 PM
Vivek Kumar
6 odpowiedzi
19th Sep 2018, 5:10 PM
Paul
Paul - avatar
+ 1
hey Vivek Kumar you can do it in very simple Mannar the code is down print("P" + " " * 6 + "N") print(" " + "Y" + " " * 4 + "O") print(" " * 2 + "T" + " " * 1 + "H")
19th Sep 2018, 4:53 PM
Abhay Singh
+ 1
Mehran sanea , I want a answer in which the user can input, python was just an example
22nd Sep 2018, 3:45 PM
Vivek Kumar
+ 1
Vivek Kumar try this: print(“P N\n”) print(“ Y O \n”) print(“ TH “) that is all one code. hope it helped. Alexander Wood 🙂😉
23rd Sep 2018, 11:45 AM
Alexander Wood
Alexander Wood - avatar
0
print(""" P N Y O TH """)
22nd Sep 2018, 1:06 PM
Mehran sanea
Mehran sanea - avatar