-1

I was making a terminal-type program with python and I was wondering if I could make it print the next line of text after you press enter e.g

 `print('this was a triumph')
 #press enter to print the next line
 print('Im making a note here, huge success!')`
Toto Briac
  • 865
  • 6
  • 25
Alyx
  • 1
  • 7
    Use `input('Press enter to print next line')` – dantechguy Jan 19 '21 at 09:00
  • 1
    possible duplicate of https://stackoverflow.com/questions/983354/how-do-i-make-python-wait-for-a-pressed-key – Umlin Jan 19 '21 at 09:02
  • 3
    Does this answer your question? [How do I make python wait for a pressed key?](https://stackoverflow.com/questions/983354/how-do-i-make-python-wait-for-a-pressed-key) – Umlin Jan 19 '21 at 09:02

1 Answers1

2

You could try:

input('this was a triumph')
input('Im making a note here, huge success!')

or:

print('this was a triumph')
input('Press Enter To Continue:')
print('Im making a note here, huge success!')
Dharman
  • 26,923
  • 21
  • 73
  • 125
The Pilot Dude
  • 1,798
  • 2
  • 4
  • 22