Challenge: Working with the For Loop
Tehtävä
Swipe to start coding
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.
Ratkaisu
Oliko kaikki selvää?
Kiitos palautteestasi!
Osio 5. Luku 4
single
Kysy tekoälyä
Kysy tekoälyä
Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme
Suggested prompts:
Tiivistä tämä luku
Explain code
Explain why doesn't solve task
Awesome!
Completion rate improved to 1.67
Challenge: Working with the For Loop
Pyyhkäise näyttääksesi valikon
Tehtävä
Swipe to start coding
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.
Ratkaisu
Oliko kaikki selvää?
Kiitos palautteestasi!
Osio 5. Luku 4
single