WeCodeAcademy

Variables and Types

You do not declare a type in Python. Assign a value and the variable exists.

Examplepython
Open in editor »
Quick check

Which is a valid variable assignment?

Your turn: write the code

Create the variables name = "Ada" and age = 36, then print Ada is 36 with print(name, "is", age).

Finish the quick check (and any code exercise) to complete this lesson, or mark it done yourself.

Tip: use the left and right arrow keys to move between lessons.