Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
学ぶ Challenge: Identifying Positive Values | Functions in Python
/
Introduction to Python (dev copy)
セクション 6.  6
single

single

bookChallenge: Identifying Positive Values

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

タスク

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

Your task is to create a function called is_positive that takes in a single argument, n. It should return:

  • 'positive' if n is greater than 0.
  • 'negative' if n is less than 0.
  • 'zero' if n is equal to 0.

解答

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

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

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

セクション 6.  6
single

single

AIに質問する

expand

AIに質問する

ChatGPT

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

some-alt