Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download

terminal exercises

2807 views
Create a python script called cat.py and make it executable.

The script should take a single command line argument, which is the name of a file.
The output should be the contents of that file, dumped to the screen.

If there are too many or too few command line arguments, print out an error message.