0
Multiple inputs in multilines
I have a text (invitation for a birthday), which should be written in multiple lines and look something like this: "Hello, (input(name))! I am pleased to invite you to my birthday party, which will be held at (input(place)) on (input(date)). Looking forward to meeting and hanging out with you!" The question is how can i insert multiple inputs in a multiline, not writing print() for each line with input? When writing with """, inputs are printed as an ordinary string (it outputs not the input itself, but a string " + input()"). The same thing is with the newlines. Probably, there are some other methods of inserting inputs in a multiline text? I would be very grateful for your advice!
2 ответов
+ 2
Read the input before printing your invite and store all the inputs in variables, then concat the text to print accordingly
https://code.sololearn.com/cqQHe4VPRbfH/?ref=app
With \n you can force a newLine in one print call
0
Thanks a lot! It really worked for me