Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
学ぶ Challenge: Running a Grocery Store | Conditional Statements in Python
Introduction to Python (dev copy) (copy) 1769011330820
セクション 3.  7
single

single

bookChallenge: Running a Grocery Store

メニューを表示するにはスワイプしてください

Suppose you run a small grocery store with daily expenses of $2000. If your daily revenue is less than $2000, you're operating at a loss; otherwise, you're turning a profit. Let's craft an if/else statement to reflect this situation.

タスク

スワイプしてコーディングを開始

Set up a conditional statement to determine if the revenue variable is below 2000.

  • If it is, display the message "We're operating at a loss!".
  • Otherwise, display the message "Everything is good!".

Please refrain from altering the revenue value.

解答

Switch to desktop実践的な練習のためにデスクトップに切り替える下記のオプションのいずれかを利用して、現在の場所から続行する
すべて明確でしたか?

どのように改善できますか?

フィードバックありがとうございます!

セクション 3.  7
single

single

AIに質問する

expand

AIに質問する

ChatGPT

何でも質問するか、提案された質問の1つを試してチャットを始めてください

some-alt