If/else Statements
メニューを表示するにはスワイプしてください
Decision making is required when we want to execute a code only if a certain condition is satisfied.
The if, elif, else statement is used in Python for decision making.
123456price = 999 if price > 1000: print('The price is high. I won't buy it') else: print('OK, I will buy it')
すべて明確でしたか?
フィードバックありがとうございます!
セクション 3. 章 2
AIに質問する
AIに質問する
何でも質問するか、提案された質問の1つを試してチャットを始めてください
セクション 3. 章 2