python basic question how to print the name 10 times in multiple lines without using for loop and in a string
Solution 1:
You can simply append a newline character at the end of the name:
name = input("What's your name??")
print(10 * (name + '\n'))
\n
is the newline character - anything printed after it will go to the next line.
Solution 2:
name = input("What's your name?? ")
print(10 * (name+"\n") )