下記の質問で、outputを出そうとするとエラーになってしまいます。解決方法をご存知でしょうか。
if__name__=="main":の後に、エラーがでてきます。。
A user will input a number. If the number is between 10 and 100 or between 150 and 200 the function will output → True
ーーーー
def check(number):
if number>=10 and number<100:
print("True")
elif number>=150 and number<200:
print("True")
else:
print("False")
def main():
number=int(input("Enter the number:"))
check(number)
if__name__=="main":
main()
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/07/06 03:56
2017/07/06 03:57
2017/07/06 03:58
2017/07/06 04:01
2017/07/06 04:01
2017/07/06 04:02
2017/07/06 04:02
2017/07/06 04:04
2017/07/06 04:06