작성
·
164
0
import random
random_number = random.randint(1,100)
print("숫자를 맞춰보세요(1~100):")
user_input = int(input())
while (user_input != random_number):
if user_input > random_number:
print("숫자가 너무 큽니다.")
elif user_input < random_number:
print("숫자가 너무 작습니다.")
print("정답입니다. 정답은", user_input,"입니다" )
partially initialized module 'random' has no attribute 'randint'