Challenge: Create a Student Roster
Teachers often need to keep track of student names. In this challenge, you'll create a Python list to store student names and practice adding/removing students.
Swipe to start coding
Write a Python script that creates a list of at least five student names, adds a new student, removes one, and prints the final list.
- Create a list called
student_rostercontaining at least five names. - Add a new student name to the list.
- Remove one student name from the list.
- Assign the final list to
final_list.
Lösning
Tack för dina kommentarer!
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
How do I create a Python list for student names?
How can I add a student to the list?
How do I remove a student from the list?
Fantastiskt!
Completion betyg förbättrat till 4.76
Challenge: Create a Student Roster
Svep för att visa menyn
Teachers often need to keep track of student names. In this challenge, you'll create a Python list to store student names and practice adding/removing students.
Swipe to start coding
Write a Python script that creates a list of at least five student names, adds a new student, removes one, and prints the final list.
- Create a list called
student_rostercontaining at least five names. - Add a new student name to the list.
- Remove one student name from the list.
- Assign the final list to
final_list.
Lösning
Tack för dina kommentarer!
single