Welcome to the start of your Python journey. This week, we aren't just writing code; we are learning to communicate with the machine. By the end of this module, you will build programs that interact with users and make intelligent decisions.
Learning Outcomes
- Define **variables** to store user input and static data.
- Construct **conditional statements** (If/Else) to control flow.
- Perform **arithmetic operations** on various data types.
Weekly Tasks
- 1 Install the Python development environment.
- 2 Complete the "Hello World" terminal challenge.
- 3 Build the "Band Name Generator" capstone project.
Core Syntax Spotlight
# Variable and Input Demo
user_name = input("What is your name? ")
if user_name == "Alice":
print("Welcome back, Alice!")
else:
print("Hello, stranger.")
user_name = input("What is your name? ")
if user_name == "Alice":
print("Welcome back, Alice!")
else:
print("Hello, stranger.")
Capstone: Band Name Generator
Combine everything you've learned about inputs, variables, and string concatenation into your first interactive Python script.