Question 9: Variables

Write a Python program to display details about a student’s school life.

  1. Create a variable called student_name and assign it the student’s name (e.g., "Alex").
  2. Create a variable called school_name and assign it the name of the school (e.g., "Greenwood High").
  3. Create a variable called favorite_subject and assign it the name of the student’s favorite subject (e.g., "Math").
  4. Create a variable called grade_level and assign it the student’s grade level (e.g., 5).
  5. Use the print function to display the following:
    • The student’s name and school: "The student’s name is [student_name], and they study at [school_name]."
    • The favorite subject: "Their favorite subject is [favorite_subject]."
    • The grade level: "They are currently in grade [grade_level]."
Write what you are looking for, and press enter to begin your search!