Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

Argparser

Resources

Homework

  1. update your forked repo from my repo(ref)
  2. following 01_git, create a new branch LAST#_06arg (ex: pan667_06arg) in your forked repo
  3. activate the environment you created in 03_conda
  4. copy the file code.py to submissions/ and rename it as LAST#.py
  5. open the file, add arguments for mode and pow, set proper values for type, default, help, and metavar
  6. add an argument named print_hello which action is store_true
  7. run python LAST#.py -h to see the arguments you created
  8. run python LAST#.py and test with different argument values to see if it works properly
  9. run black with line length 100, isort, and flake8 on the file
  10. stage changes, commit with the message "learning arg", push and submit a pr