I'm just learning python. I'm trying to figure out while loops with s.argv in a larger script on my network. hopefully this small example will show basically what i'm trying to do.
for arg in sys.argv:
#which gives me:
using a while loop i'm trying to print out the last 4 arguments:
"but could be better", while allowing any additional arguments i add to be printed (8,9,10,so on)
I'm trying to do this with a list of servers in my network but this a shorter example.
I'm sure most of you can do this in your sleep but i'm just learning and it's not so easy for me.
I would greatly appreciate any assistance.