๐ŸŽ“ Crisis at Chaotic University! ๐Ÿšจ

Technology has failed campus-wide! Use Python programming and computational thinking to save the day!

Level 0: Choose Your Scenario!

๐Ÿ Python Glossary

Variable
A labeled container that holds information.
  • Naming rules: must start with a letter or underscore, no spaces.
Data Types
Categories that define what operations can be performed on data.
int (Integer)
The data type for storing whole numbers.
float (Decimal)
The data type for storing decimals.
bool (Boolean)
A data type that can only store True or False. Useful for tracking states (e.g., Bluetooth toggled on/off) and making decisions.
str (String / Text)
A data type used to store text. Must be written with quotation marks โ€” single or double quotes โ€” or triple quotes (""" """) for multi-line strings.
Function
Predefined code that performs a specific calculation or task, often by processing input to create a desired output (e.g., passing "65" to int() returns the number 65).
  • Identifiable by trailing parentheses: print(), input(), split()
append()
Adds an item to the end of a list.
numbers = [1, 2, 3]
numbers.append(4)  # โ†’ [1, 2, 3, 4]
remove()
Removes an item from a list.
numbers = [1, 2, 3]
numbers.remove(2)  # โ†’ [1, 3]
print()
Displays output on the screen.
print("Hello, world!")
input()
Reads input from the user as a string.
name = input("Enter your name: ")
split()
Splits a string into a list by a delimiter (default: space).
letters_str = "a b c"
letters_list = letters.split()  # โ†’ ['a', 'b', 'c']
len()
Returns the number of items in a container (string, list, etc.).
len("hello")  # โ†’ 5
sum()
Returns the total sum of items in a numeric list.
numbers = [1, 2, 3]
sum(numbers)  # โ†’ 6
range()
Generates a sequence of numbers.
range(5)  # โ†’ 0, 1, 2, 3, 4

๐Ÿšจ CAMPUS-WIDE EMERGENCY! ๐Ÿšจ

The university is in crisis! All computer systems at Chaotic University have mysteriously crashed overnight!

Classes start tomorrow and everyone is in a panic!

Doomer Wojack illustration Dean Doomer: "We are indubitably doomed if we can't find someone who knows Python to disentangle this disorganized data. I doubt we have anyone brave enough to wrangle the tangled up text in these terrible tables to make them coherent, organized, and stable--but if you want to try--be my guest. The fate of the semester depends on you. No pressure."

Choose Your Crisis to Solve:

๐Ÿ‘จโ€๐Ÿซ Professor Scatterbrain

Crisis: Student rosters are scrambled across classes!

Help organize attendance lists and grade data before tomorrow's classes.

๐Ÿ’ผ Administrator Alice

Crisis: Enrollment system crashed during registration!

Process hundreds of pending applications and create organized student records.

๐Ÿ”ฌ Researcher Ray

Crisis: Lab data from multiple experiments is mixed up!

Sort and analyze research data to save months of work.

๐Ÿ’ป IT Hero

Crisis: User accounts and permissions are chaos!

Automate user management and fix access control systems.