Learn Before
Relation

Setting Variables in Python

Use the equal sign ("=") with the variable name on the left and the value on the right.

Examples:

  • car_model = "Ford Taurus"
  • Total_Cost = 400
  • n = 18

Note that the equal sign does not mean "equal to" in this case. It should be read as "(Variable) refers to (Value)." For example, "n refers to 18."

0

1

Updated 2020-10-03

Tags

Data Science