Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupport News AboutSign UpSign In
| Download

terminal exercises

Views: 2497
1
#! /usr/bin/python3
2
3
# code borrowed from https://www.pythonforbeginners.com/system/python-sys-argv
4
5
6
import sys
7
print("This is the name of the script: ", sys.argv[0])
8
print("Number of arguments: ", len(sys.argv))
9
print("The arguments are: " , str(sys.argv))
10