PYTHON_SOLVES Telegram 57
## Математические функции

Тема:
Используем встроенные функции и модуль math для вычислений.

import math  # https://www.tgoop.com/python_solves/14

print(abs(-10))
# Вывод: 10
print(round(3.14159, 2))
# Вывод: 3.14
print(pow(2, 3))
# Вывод: 8
print(math.sqrt(16))
# Вывод: 4.0
print(math.pi)
# Вывод: 3.141592653589793
print(math.sin(math.pi/2))
# Вывод: 1.0


Полезные советы:

* math полезен для корней, тригонометрии, констант.
* round() с отрицательным аргументом округляет до десятков, сотен.

#азы



tgoop.com/python_solves/57
Create:
Last Update:

## Математические функции

Тема:
Используем встроенные функции и модуль math для вычислений.

import math  # https://www.tgoop.com/python_solves/14

print(abs(-10))
# Вывод: 10
print(round(3.14159, 2))
# Вывод: 3.14
print(pow(2, 3))
# Вывод: 8
print(math.sqrt(16))
# Вывод: 4.0
print(math.pi)
# Вывод: 3.141592653589793
print(math.sin(math.pi/2))
# Вывод: 1.0


Полезные советы:

* math полезен для корней, тригонометрии, констант.
* round() с отрицательным аргументом округляет до десятков, сотен.

#азы

BY Python решает 🐍


Share with your friend now:
tgoop.com/python_solves/57

View MORE
Open in Telegram


Telegram News

Date: |

During the meeting with TSE Minister Edson Fachin, Perekopsky also mentioned the TSE channel on the platform as one of the firm's key success stories. Launched as part of the company's commitments to tackle the spread of fake news in Brazil, the verified channel has attracted more than 184,000 members in less than a month. The group also hosted discussions on committing arson, Judge Hui said, including setting roadblocks on fire, hurling petrol bombs at police stations and teaching people to make such weapons. The conversation linked to arson went on for two to three months, Hui said. It’s easy to create a Telegram channel via desktop app or mobile app (for Android and iOS): ‘Ban’ on Telegram “[The defendant] could not shift his criminal liability,” Hui said.
from us


Telegram Python решает 🐍
FROM American