Why is everyone using Python for AI? A gentle introduction to the language of artificial intelligence.
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