Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- """
- 190
- lists5
- Tommy Weber
- """
- intList = []
- x = int(input("Please input an integer: "))
- intList.append(x)
- go = 'Y'
- sumV = x
- maxV = x
- minV = x
- while (go != 'N' and go != 'n'):
- x = int(input("Please input an integer: "))
- intList.append(x)
- go = input("Continue? (Y/N): ")
- sumV += x
- if (maxV < x):
- maxV = x
- elif (minV > x):
- minV = x
- print("The sum is:", sumV)
- print("The max is:", maxV)
- print("The min is:", minV)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement