Skip to content

How to make your Python programs more interactive (cli arguments)

Photo of Elena Oat
Hosted By
Elena O.
How to make your Python programs more interactive (cli arguments)

Details

Heys PyLadies and PyGents,

let's meet for another simple and basic session in Python. We'll learn how to use the argparse module in Python. It's meant to read some arguments from the user and use those inside the program.

Ex. python count_something.py --sum 2 3

Here the --sum is an argument, as well as 2 and 3.

Photo of Helsinki PyLadies group
Helsinki PyLadies
See more events
espresso house
kamppi · Helsinki