목록2024/08/30 (1)
꼬물꼬물 개발자
while
# Python Standard Library 사용법import random#from random import randint# if 함수pc_choice = random.randint(1, 50)user_choice = int(input("Choose number."))if user_choice == pc_choice: print("You won!")elif user_choice > pc_choice: print("Lower! Computer chose", pc_choice)elif user_choice pc_choice: print("Higher! Computer chose", pc_choice) # while 함수distance = 0while distance 20: print(f"I'm ..
Python
2024. 8. 30. 01:01