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!

7th Jan 2022, 7:23 PM
Just_Odessa
2 odpowiedzi
+ 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
7th Jan 2022, 8:35 PM
ein siedler
ein siedler - avatar
0
Thanks a lot! It really worked for me
8th Jan 2022, 12:35 PM
Just_Odessa