am_dot_com

IA 2021-10-20

Oct 20th, 2021 (edited)
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.20 KB | None | 0 0
  1. import sys
  2. """
  3. strWhatIGotFromTheCommandLine = str(sys.argv)
  4. print(strWhatIGotFromTheCommandLine)
  5. """
  6.  
  7. iHowManyInts = int(sys.argv[1])
  8. sum=0
  9. for n in range(iHowManyInts):
  10.     sum+=n
  11. print (sum)
Add Comment
Please, Sign In to add comment