Assigning a variable in Python

Опубликовано: 02 Ноябрь 2024
на канале: Python Morsels
483
13

You can set the value of a variable in Python by using the equals sign (=) to make an assignment statement.

https://pym.dev/assign-a-variable/

Find more Python screencasts at https://pym.dev/screencasts/

00:00 An equals sign assigns in Python
00:19 We don't have declarations or initializations
00:44 Valid variable names in Python
01:02 Reassigning a variable in Python
01:31 Variables don't have types in Python
01:55 Type annotations are really type hints
02:48 Use = to assign a variable in Python