Advertisement
Guest User

Untitled

a guest
Jan 26th, 2020
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. 3.3
  2. # Get N from the command line
  3. import sys
  4. N = int(sys.argv[1])
  5.  
  6. # Your code goes here
  7. direction = 0
  8.  
  9. If N > 0:
  10. direction = 1
  11. else:
  12. direction = -1
  13.  
  14. #here i am trying to make while n does not = 0
  15. while N
  16. print (N)
  17. N = N + direction
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement