The Python Oracle

How to prompt for user input and read command-line arguments

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Ocean Floor

--

Chapters
00:00 Question
00:21 Accepted answer (Score 596)
01:18 Answer 2 (Score 505)
01:33 Answer 3 (Score 210)
01:57 Answer 4 (Score 35)
02:19 Thank you

--

Full question
https://stackoverflow.com/questions/7079...

Accepted answer links:
[the ]: https://docs.python.org/dev/library/cmd....
[raw_input]: https://docs.python.org/2/library/functi...
[input]: https://docs.python.org/dev/library/func...
[optparse]: https://docs.python.org/dev/library/optp...
[argparse]: https://docs.python.org/dev/library/argp...
[getopt]: https://docs.python.org/dev/library/geto...
[fileinput]: https://docs.python.org/dev/library/file...
[Python library reference]: https://docs.python.org/dev/library/

Answer 3 links:
[Documentation of the change]: http://docs.python.org/py3k/whatsnew/3.0...

Answer 4 links:
[argparse]: https://docs.python.org/library/argparse...
[readline module]: https://docs.python.org/library/readline...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #input #commandlinearguments

#avk47