Advertisement
PiggiesGoSqueal

Untitled

Feb 15th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. """
  2. 190
  3. lists5
  4. Tommy Weber
  5. """
  6.  
  7. intList = []
  8. x = int(input("Please input an integer: "))
  9. intList.append(x)
  10. go = 'Y'
  11. sumV = x
  12. maxV = x
  13. minV = x
  14.  
  15. while (go != 'N' and go != 'n'):
  16. x = int(input("Please input an integer: "))
  17. intList.append(x)
  18. go = input("Continue? (Y/N): ")
  19. sumV += x
  20. if (maxV < x):
  21. maxV = x
  22. elif (minV > x):
  23. minV = x
  24.  
  25. print("The sum is:", sumV)
  26. print("The max is:", maxV)
  27. print("The min is:", minV)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement