Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while(True):
- lottoQuantity = int(input("로또를 몇장 구매하시겠습니까? "))
- if lottoQuantity <= 0:
- print("종료합니다.")
- break
- while lottoQuantity>0:
- print("랜덤하게 생성된 로또 번호입니다.")
- for i in range(1,lottoQuantity+1):
- print("[%d]: " % i, end=" ")
- for j in range(6):
- print("{0:3d}".format(random.randint(1,45)), end=" ")
- print()
- break
Add Comment
Please, Sign In to add comment