Python - Полный Курс для Начинающих
Lesson 1. Introduction in Python
#PYTHON #INTRODUCTION IN PYTHON #aRithmetic operators #data types #conversion of types #built-in functions #variables Arithmetic operators · Addition: + · Subtraction: - · Multiplication: * · Division: / · Floor division: // · Modulus: % · Exponent: ** Data types · Integer numbers – int: …, -5, -4, -3, -2, -1, 0, 1, … · Floating-point numbers – float: …, -1.1, 5.16, 3e-10, … · String – str: …, «S», «LINUX», «3ABoP», «Hello, World!», … · Boolean type – bool: False, True · Nothing – NoneType: None Conversion of types · int to float in [1]: float(1) out [1]: 1.0 · float to int in [2]: int(5.7) out [2]: 5 · float to str in [3]: str(54...
Python. Числа и операции с ними. Встроенные функции int(), bin(), oct(), hex(), float(), complex(), (6)
Числа и операции с ними, встроенные функции int( ), bin( ), oct( ), hex( ), float( ), complex( ).