セクション 5. 章 4
single
Challenge: Working with the For Loop
メニューを表示するにはスワイプしてください
タスク
スワイプしてコーディングを開始
You are given the list employee_salaries. This year, your company earned much more than expected due to the hard work and dedication of the employees, so you decided to increase all salaries by 10%.
- Use a
forloop to iterate through theemployee_salarieslist. - In the
updated_salarieslist, record each salary increased by 10% using the.append()method. - You can use the following formula to increase by 10%:
element * 1.1.
解答
すべて明確でしたか?
フィードバックありがとうございます!
セクション 5. 章 4
single
AIに質問する
AIに質問する
何でも質問するか、提案された質問の1つを試してチャットを始めてください