# You must make sure to run all cells in sequence using shift + enter or you might encounter errors
from pykubegrader.initialize import initialize_assignment

responses = initialize_assignment("15_variables_q", "week_1", "readings", assignment_points = 10.0, assignment_tag = 'week1-readings')

# Initialize Otter
import otter
grader = otter.Notebook("15_variables_q.ipynb")

โ“ Variables#

# Run this block of code by pressing Shift + Enter to display the question
from questions._15_variables_q import Question1
Question1().show()
# Run this block of code by pressing Shift + Enter to display the question
from questions._15_variables_q import Question3
Question3().show()
# Run this block of code by pressing Shift + Enter to display the question
from questions._15_variables_q import Question4
Question4().show()

Marioโ€™s Dining Center Routine ๐Ÿฝ๏ธ๐Ÿ‰#

Instructions:#

  1. Create the following variables:

    • dining_center: A string storing the name of the dining center (โ€œHandschumacher Dining Centerโ€).

    • mascot: A string storing the name of the mascot (โ€œMario the Dragonโ€).

    • meals_per_day: An integer representing the number of meals Mario eats per day (3).

    • total_days: An integer representing the number of days Mario eats at the dining center in a week (7).

    • total_meals: Use an arithmetic operator to calculate the total number of meals Mario eats in a week.

    • dragons: An integer representing the number of dragons Mario wants to share his meals with (6).

def mario_dining_center():

    # Define the variables
    ...

    return (
        dining_center,
        mascot,
        meals_per_day,
        total_days,
        total_meals,
        dragons,
    )


(
    dining_center,
    mascot,
    meals_per_day,
    total_days,
    total_meals,
    dragons,
) = mario_dining_center()
grader.check("question-Mario-Dining-room")

Submitting Assignment#

Please run the following block of code using shift + enter to submit your assignment, you should see your score.

from pykubegrader.submit.submit_assignment import submit_assignment

submit_assignment("week1-readings", "15_variables_q")