0

I am asking for user input as follows:

answer = input('1.Yes\n2.No\n3.Something else\n4.Anything\n')

This works fine, but I would like to split this code, to make the code more readable. Like:

   answer = input('1.Yes\n
                   2.No\n
                   3.Something else\n
                   4.Anything\n'
                  )  

What are my options to do this?

martineau
  • 112,593
  • 23
  • 157
  • 280
Tom
  • 1,175
  • 1
  • 14
  • 33

0 Answers0