Guest User

Untitled

a guest
Dec 13th, 2018
65
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # -*- coding: cp1252 -*-
  2. def main():
  3. luku = input("Anna luku: ")
  4. while (luku > 1 and luku < 10):
  5. if luku == 1:
  6. print "I"
  7. elif luku == 2:
  8. print "II"
  9. elif luku == 3:
  10. print "III"
  11. elif luku == 4:
  12. print "IV"
  13. elif luku == 5:
  14. print "V"
  15. elif luku == 6:
  16. print "VI"
  17. elif luku == 7:
  18. print "VII"
  19. elif luku == 8:
  20. print "VIII"
  21. elif luku == 9:
  22. print "IX"
  23. elif luku == 10:
  24. print "X"
  25. else print "Et osaa valita edes lukua, häpeäisit"
  26. main()
RAW Paste Data