S SmartDocs
시리즈: python old python 4 줄 · 업데이트 2026-02-03

Teaching.py

python_old/Teaching.py

import random   # pick secret = random.randint(1, 100)
secret = random.randint(1, 100)
guess = int(input("Guess the number: "))
attempts_left = 7

관련 글