Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
学ぶ Challenge: Using the Range Function | Loops in Python
Introduction to Python (dev copy)
セクション 5.  6
single

single

bookChallenge: Using the Range Function

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

タスク

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

Using a for loop, print all the numbers from 10 to 20 (inclusive) squared (100, 121, 144, and so on). Make sure your output includes the squares of both the starting number (100) and the ending number (400).

Note

The square operator should only be applied in the print statement, whereas the for loop should just iterate from 10 to 20.

解答

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

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

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

セクション 5.  6
single

single

AIに質問する

expand

AIに質問する

ChatGPT

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

some-alt