Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
gmolveau
GitHub Repository: gmolveau/python_full_course
Path: blob/master/examples/cli/argv.py
305 views
1
# cli.py
2
import sys
3
4
print(f"This is the name of the script: {sys.argv[0]}")
5
print(f"Number of arguments: {len(sys.argv)}")
6
print(f"The arguments are: {str(sys.argv[1:])}")
7
8