Answer the question
In order to leave comments, you need to log in
How to implement multiline input in Python?
I make my task manager, I implemented multiline input in this way:
while True:
try:
self.task = input('')
self.join_task.append(self.task)
except KeyboardInterrupt:
break
Answer the question
In order to leave comments, you need to log in
It seems to me that it is not difficult to take the entered string into a temporary variable, display it on the screen, and request re-entry. If an empty string is entered, the last option is accepted, if not empty - it is put into a temporary variable, onto the screen - and all over again.
Well, after three weeks of learning python, it shouldn't be hard.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question