Guest User

Untitled

a guest
Feb 15th, 2021
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.41 KB | None | 0 0
  1. ###### 1. feladat
  2. szam = None
  3. probalkozasok_szama = 0
  4.  
  5. while True:
  6.     szam = int(input("Kérek egy számot: "))
  7.     if(szam % 4 == 0):
  8.         print("Köszönöm")
  9.         break
  10.     else:
  11.         probalkozasok_szama+=1
  12.         if(probalkozasok_szama==3):
  13.             print("Feladom")
  14.             break
  15.    
  16. ###### 2. feladat
  17. szin = ""
  18.  
  19. while szin != "zöld":
  20.     szin = input("Kérek egy színt: ")
Advertisement
Add Comment
Please, Sign In to add comment