Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
学ぶ Challenge: Create a Student Roster | Getting Started with Python for the Classroom
Python for Teachers
セクション 1.  3
single

single

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.

タスク

スワイプしてコーディングを開始

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.

解答

Switch to desktop実践的な練習のためにデスクトップに切り替える下記のオプションのいずれかを利用して、現在の場所から続行する
すべて明確でしたか?

どのように改善できますか?

フィードバックありがとうございます!

セクション 1.  3
single

single

AIに質問する

expand

AIに質問する

ChatGPT

何でも質問するか、提案された質問の1つを試してチャットを始めてください

some-alt