私はPythonを初めて使い、メッセージを出力するif文でプログラムを終了する方法を知りたいのですが、これは私の 'stand'変数で起きているようには見えません<の下にあります。**ステートメントは太字で表示されています** **は私が問題を抱えているコードですが、それでも私が望むメッセージを表示しますが、プログラムはそのメッセージで停止しませんが、 )。 「カウントダウン」を無視する。if文を使ったスクリプトの終了
ここは私のコードの一部です。
while stand <= 0 or mission > 10000:
try:
stand = int(input("Enter a VALID distance in metres: "))
except ValueError:
print("Please enter a valid distance E.g 6000: ")
**if stand > 0 or stand < 5000:
print("ERROR, ERROR")
print("Launch cannot begin, the Mission Control and spectator stands are dangerously close at a distance of {}m.".format(mission))
print("This launch site sucks! It must be demolished and rebuilt!")
print("Launch delayed.")**
if stand >= 5000:
print("Fortunately the mission control and viewing stands are situated far enough.")
while countdown == 0 or countdown == "":
print("We need a person to countdown.")
try:
countdown = int(input("How many seconds would you like the countdown to be?: "))
except ValueError: