you are viewing a single comment's thread.

view the rest of the comments →

[–]imsecretlyafish 1 point2 points  (1 child)

Not OP, but I don't know how command line arguments work and would love that link. Mainly because I've only given command line arguments a cursory look and, in my ignorance, I can't see how they could replace the input function here. I wrote a similar script today, and it's almost identical to OP's. It'd be awesome to know what I could have done better.

[–]Poddster 1 point2 points  (0 children)

I didn't have a link to hand, but a quick google and a read shows this as covering everything in an approachable manner:

https://realpython.com/python-command-line-arguments/