How to print all command line arguments except the program name in Python

2 Answers

0 votes
import sys

print(' '.join(sys.argv[1:]))



'''
run:

abc 123 F35

'''

 



answered 6 days ago by avibootz
0 votes
from sys import argv

print(*argv[1:])



'''
run:

abc 123 F35

'''

 



answered 6 days ago by avibootz
...