R
R
Rulon Oboevv2016-02-28 12:48:30
Python
Rulon Oboevv, 2016-02-28 12:48:30

Python - input encoding error?

Error with encoding input('n\n Press Enter to exit. ") this file opens in cmd and closes abruptly, but I need it to close after I press Enter.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2016-02-28
@the_guyfox

input('n\n Press Enter to exit. ")
- wrong pair of quotes
- extra character 'n\n'
correct command: >>> input("\n Press Enter to exit. ")

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question