Print parameters
Created on Dec. 9, 2016 by Julien Palard
Write a script which prints its own file name.
Warning
You should work on this exercise with your own installation of Python, on your computer. Learn how for Mac OSX or Windows.
Have a look at sys.argv.
Don't forget to import
the sys
module by using import sys
.
Example
1 2 3 4 5 |
|
mv
is a terminal command (OSX, Linux) renaming or moving a file. For Windows, its equivalent is move
.