Advertisement
Guest User

Untitled

a guest
Jan 16th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. def main():
  2. perjantai = 5
  3. for i in range(1, 12+1):
  4. if i == 1:
  5. pvlkm = 31
  6. elif i == 2:
  7. pvlkm = 28
  8. elif i == 3:
  9. pvlkm = 31
  10. elif i == 4:
  11. pvlkm = 30
  12. elif i == 5:
  13. pvlkm = 31
  14. elif i == 6:
  15. pvlkm = 30
  16. elif i == 7:
  17. pvlkm = 31
  18. elif i == 8:
  19. pvlkm = 31
  20. elif i == 9:
  21. pvlkm = 30
  22. elif i == 10:
  23. pvlkm = 31
  24. elif i == 11:
  25. pvlkm = 30
  26. else:
  27. pvlkm = 31
  28. for j in range(1, pvlkm+1):
  29. if perjantai == 7:
  30. print(j,".",i,".", sep="")
  31. perjantai += 1
  32. main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement