Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 3.3
- # Get N from the command line
- import sys
- N = int(sys.argv[1])
- # Your code goes here
- direction = 0
- If N > 0:
- direction = 1
- else:
- direction = -1
- #here i am trying to make while n does not = 0
- while N
- print (N)
- N = N + direction
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement