Seksjon 2. Kapittel 3
single
Challenge: Find Students Needing Improvement
Sveip for å vise menyen
Teachers often need to identify students who may need extra support. In this challenge, you'll use a dictionary of grades to find and print the names of students with grades below 70.
Oppgave
Swipe to start coding
Write a Python script that identifies students who scored below 70.
- Loop through the
gradesdictionary. - For each student, check if their grade is less than 70.
- Print the name of any student whose grade is below 70.
Løsning
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 2. Kapittel 3
single
Spør AI
Spør AI
Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår