Skip to content

Python for AI Intro

Why is everyone using Python for AI? A gentle introduction to the language of artificial intelligence.

beginner3 / 5

Variables: Storing Info

Think of a variable like a box with a label. You can put things in it.


# Create a box named 'robot_name' and put "R2-D2" inside
robot_name = "R2-D2"

# Create a box named 'battery_level' and put 85 inside
battery_level = 85

print(robot_name)

# Output: R2-D2
Section 3 of 5
Next →