/
timheadman
/
python_for_kids
Обзор
Документация
Войти
/
timheadman
/
python_for_kids
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
variables_primitive.py
19 строк
390 B
Tim
Merge branch 'master' of ssh://gitverse.ru:2222/timheadman/python_for_kids
12 окт 2024, 11:46
12 окт 2024, 11:46
37ee81a
Код
Авторство
О чём код?
# --------------- Примитивные типы --------------- # apple: int = 1 # print(apple) # apple_piece: float = 0.5 # print(apple_piece) # apples_type: str = "Golden" # apples_color: str = "green" # print(apples_type, apples_color) # apples_rotten: bool = True # print(apples_rotten) apple: int = 12 print(id(apple), " ", apple) apple = apple + 1 print(id(apple), " ", apple)