Читать книгу Learn Python quick - Jens Braun - Страница 16

Float

Оглавление

Float refers to numbers that have decimal parts, such as 1.234, -0.023, 12.01.

To declare a float in Python, we write variableName = initial value

Example:

userHeight = 1.82, userWeight = 67.2

Learn Python quick

Подняться наверх