Challenge: Working with the For Loop
Taak
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.
Oplossing
Was alles duidelijk?
Bedankt voor je feedback!
Sectie 5. Hoofdstuk 4
single
Vraag AI
Vraag AI
Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.
Geweldig!
Completion tarief verbeterd naar 1.67
Challenge: Working with the For Loop
Veeg om het menu te tonen
Taak
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.
Oplossing
Was alles duidelijk?
Bedankt voor je feedback!
Sectie 5. Hoofdstuk 4
single