I am making a code in which there are a lot of lines to be printed (something like a story) but
they must be printed using different
Something like:
print("str1")
print("str2")
print("str3") #and so on
I want that the user chooses when to print next line.
I tried this:
def next_line():
while True:
inp = input()
if inp === "":
break
print("str1")
next_line()
print("str2")
next_line()
print("str3")
next_line() #and so on
But the problem with the above code is that it gives an output like:
str1
str2
str3
I don't want there to be blank lines between the printed lines.
That is, the output should be like:
str1
str2
str3
Is this possible to do? If so, how?