を動作しない場合 - /他の機能が実行されていない場合は、単純な -シンプルパイソン/他の構文は、私はグレードテスト簡単なテスト・スコアラーを作成しようとしているし、あなたの応答を与えるのです
のPythonを -
testScore = input("Please enter your test score")
if testScore <= 50:
print "You didn't pass... sorry!"
elif testScore >=60 and <=71:
print "You passed, but you can do better!"
エラーがある -
Traceback (most recent call last):
File "python", line 6
elif testScore >= 60 and <= 71:
^
SyntaxError: invalid syntax
エラーが何であるとして取るのでしょうか? –
Pythonは高レベルですが英語ではまっすぐではありません。 'elif testScore> = 60と<= 71:'はこの 'elif 60 <= testScore <= 71:' –
に変更する必要があります。ありがとう! –