解答例:練習問題_2_3(if~else文+四角い的)
x, y = 55.5, 30.0
if (50.0 <= x <= 70.0) and (30.0 <= y <= 50.0):
score = 10
else:
score = 0
print('score: ', score)
score: 10
図を見ながら複数のポイントの x, y を代入して合っていることを確認してください。
x, y = 55.5, 30.0
if (50.0 <= x <= 70.0) and (30.0 <= y <= 50.0):
score = 10
else:
score = 0
print('score: ', score)
score: 10
図を見ながら複数のポイントの x, y を代入して合っていることを確認してください。