1.2.1 Statements and Expressions

Unit: Unit 1: Fundamentals of Python • Interactive Practice

Quick Answer & Summary:

Interactive Python programming tutorial and practice in your browser.

Interactive Challenge (Run Live in Browser):

# Calculate the area of a rectangle using expressions and assign to statement
width = 12
height = 8
area = width * height
print("Area:", area)
Open in Live Interactive Python Sandbox →