Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Challenge: Create a Student Roster | Getting Started with Python for the Classroom
Python for Teachers

bookChallenge: 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.

Task

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_roster containing 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.

Solution

Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 1. ChapterΒ 3
single

single

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our chat

close

bookChallenge: Create a Student Roster

Swipe to show menu

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.

Task

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_roster containing 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.

Solution

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 1. ChapterΒ 3
single

single

some-alt