0
を繰り返したい場合、これが今の私のコードであると私は、彼らが再びプログラムを繰り返したい場合は、ユーザーに依頼する必要があるユーザーを確認して下さい。私はここでwhileループを使う必要があることを知っていますが、私は立ち往生しています。彼らはPythonプログラム
userinput = eval(input("Enter the month as a number "))
results = userinput
if results == 1:
month = "January"
elif results == 2:
month = "February"
elif results == 3:
month = "March"
elif results == 4:
month = "April"
elif results == 5:
month = "May"
elif results == 6:
month = "June"
elif results == 7:
month = "July"
elif results == 8:
month = "August"
elif results == 9:
month = "September"
elif results == 10:
month = "October"
elif results == 11:
month = "November"
elif results == 12:
month = "December"
print("Your birth month of", month)