Avsnitt 2. Kapitel 3
single
Challenge: Find Students Needing Improvement
Svep för att visa menyn
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.
Uppgift
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
Var allt tydligt?
Tack för dina kommentarer!
Avsnitt 2. Kapitel 3
single
Fråga AI
Fråga AI
Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal