how to do multi-line text in input function

Asked by Paul Levin

using the input() function, the first argument is the text to display to the user. Can this text have multiple lines? How do I specify that in the code?

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
Eugene S
Solved:
Last query:
Last reply:
Revision history for this message
Best Eugene S (shragovich) said :
#1

Hi,

Yes, you can just use "\n" to define a new line. For example something like that:

name = input("This is FIRST line \nThis is SECOND line \nThis is THIRD line")

Cheers,
Eugene

Revision history for this message
Paul Levin (tjth) said :
#2

Thanks Eugene S, that solved my question.