Nov-20-2018, 03:55 AM
(Nov-20-2018, 03:20 AM)ichabod801 Wrote: How does it not work? It works for me, although note that looping over a string loops over each character in the string. You did import sys, right? It's not in your code.
Here is what I got for output. How do I print each individual argument?
Output:im-datestamp.py aaa bbb
Number of arguments: 3 arguments.
Argument List: ['./im-datestamp.py', 'aaa', 'bbb']
[
'
.
/
i
m
-
d
a
t
e
s
t
a
m
p
.
p
y
'
,
'
a
a
a
'
,
'
b
b
b
'
]