0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Python演習問題_0【 ループ処理_練習問題① 】

Last updated at Posted at 2023-06-30

Python

繰り返す

問題

【問題1:パン屋さんの在庫管理】
あるパン屋さんでは、毎日焼きたてのパンを販売しています。パンの種類は、以下の4つです。

フランスパン
ロールパン
クロワッサン
パン・オ・ショコラ
パン屋さんでは、各種類のパンを10個ずつ焼いています。以下のようなループ処理を使って、パンの在庫を管理するPythonコードを作成してください。

【問題2:数の足し算】
以下の数のリストがあります。
number_list = [1, 3, 5, 7, 9]
このリストの中の数を一つずつ、すべて足し合わせるPythonコードを作成してください。

【問題3:カフェのメニュー表示】
あるカフェで働いているあなたは、メニューを表示するプログラムを作成しています。以下のように、カフェのメニュー(ドリンクと料理)をリストで用意し、whileループを使ってメニューを表示するプログラムを作成してください。

カフェのメニュー
 ・コーヒー
 ・紅茶
 ・ハンバーガー
 ・スープ
 ・サンドイッチ

【問題4:九九の】
九九の表を表示するPythonコードを作成してください。
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?