Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lære 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.

Oppgave

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.

Løsning

Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 1. Kapittel 3
single

single

Spør AI

expand

Spør AI

ChatGPT

Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår

Suggested prompts:

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?

close

bookChallenge: Create a Student Roster

Sveip for å vise menyen

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.

Oppgave

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.

Løsning

Switch to desktopBytt til skrivebordet for virkelighetspraksisFortsett der du er med et av alternativene nedenfor
Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 1. Kapittel 3
single

single

some-alt