Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
学ぶ How to Work with Variables in Python | Variables and Types in Python
/
Introduction to Python (dev copy)
セクション 2.  3
single

single

bookHow to Work with Variables in Python

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

Imagine you got the cost of an item saved in the price variable and you want to apply a 15% discount. You can simply reassign the updated value like this:

1234567
# Initial price price = 50 # Applying the discount price = price * (1 - 0.15) print(price)
copy
タスク

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

  1. A teacher is dividing 47 students into groups of 6. Your task is to determine how many students will not fit into a complete group and store this remainder in the students variable.

解答

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

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

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

セクション 2.  3
single

single

AIに質問する

expand

AIに質問する

ChatGPT

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

some-alt