python1 25-06-12 랜덤 숫자 맞추기 python from random import randintprint("Welcome to Python Casino!")pc_choice = randint(1, 100) playing = Truecount = 5while playing and count >= 1: user_choice = int(input("choose number (1-100): ")) if user_choice == pc_choice: print("you won") playing = False elif user_choice > pc_choice: print("lower!") count -= 1 elif user_choice print("higher") count -= 1.. 2025. 6. 12. 이전 1 다음