Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lernen Challenge: Generate Welcome Messages | Getting Started with Python for the Classroom
Python for Teachers

bookChallenge: Generate Welcome Messages

Teachers often want to make students feel welcome at the start of the year. Sending a personalized message to each student is a great way to build a positive classroom environment. In this challenge, you will use your knowledge of strings and lists to generate a warm welcome for every student in your class.

Aufgabe

Swipe to start coding

Write a Python script that generates and prints a personalized welcome message for each student in a given list.

  • Loop through each name in the student_names list.
  • For each name, create a welcome message in the format: "Welcome to class, NAME!".
  • Print each personalized message.

Lösung

War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 1. Kapitel 5
single

single

Fragen Sie AI

expand

Fragen Sie AI

ChatGPT

Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen

Suggested prompts:

How can I create a personalized welcome message for each student?

Can you show me an example of how to use strings and lists for this task?

What are some tips for making the messages feel more personal?

close

bookChallenge: Generate Welcome Messages

Swipe um das Menü anzuzeigen

Teachers often want to make students feel welcome at the start of the year. Sending a personalized message to each student is a great way to build a positive classroom environment. In this challenge, you will use your knowledge of strings and lists to generate a warm welcome for every student in your class.

Aufgabe

Swipe to start coding

Write a Python script that generates and prints a personalized welcome message for each student in a given list.

  • Loop through each name in the student_names list.
  • For each name, create a welcome message in the format: "Welcome to class, NAME!".
  • Print each personalized message.

Lösung

Switch to desktopWechseln Sie zum Desktop, um in der realen Welt zu übenFahren Sie dort fort, wo Sie sind, indem Sie eine der folgenden Optionen verwenden
War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 1. Kapitel 5
single

single

some-alt