Challenge: Working with Variables
Taak
Swipe to start coding
You are a teacher organizing classes of students. Each class currently has 45 students, but a new rule has been introduced that limits the number of students per class to 27. You have a total of 6 classes and need to calculate how many classes will be formed.
- Create a variable called
total_studentsto store the total number of students. - Calculate the total number of students by multiplying the number of classes by the original number of students per class.
- Create a variable called
total_classesto store the number of classes needed. - Calculate the number of classes by dividing the total number of students by the new class size of 27.
Oplossing
Was alles duidelijk?
Bedankt voor je feedback!
Sectie 1. Hoofdstuk 3
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 10
Challenge: Working with Variables
Veeg om het menu te tonen
Taak
Swipe to start coding
You are a teacher organizing classes of students. Each class currently has 45 students, but a new rule has been introduced that limits the number of students per class to 27. You have a total of 6 classes and need to calculate how many classes will be formed.
- Create a variable called
total_studentsto store the total number of students. - Calculate the total number of students by multiplying the number of classes by the original number of students per class.
- Create a variable called
total_classesto store the number of classes needed. - Calculate the number of classes by dividing the total number of students by the new class size of 27.
Oplossing
Was alles duidelijk?
Bedankt voor je feedback!
Sectie 1. Hoofdstuk 3
single