Telegram Group & Telegram Channel
#вопрос261

Напишите функцию, которая будет принимать отсортированный список чисел и возвращать медиану. Если число дробное, его нужно округлить до десятых.

Примеры:

median([1, 2, 4, 5, 6, 8, 8, 8, 10]) ➞ 6
median([2, 2, 6, 8, 8, 10, 10]) ➞ 8
median([1, 2, 2, 4, 7, 8, 9, 10]) ➞ 5.5



tg-me.com/pythonjuniorjob/898
Create:
Last Update:

#вопрос261

Напишите функцию, которая будет принимать отсортированный список чисел и возвращать медиану. Если число дробное, его нужно округлить до десятых.

Примеры:

median([1, 2, 4, 5, 6, 8, 8, 8, 10]) ➞ 6
median([2, 2, 6, 8, 8, 10, 10]) ➞ 8
median([1, 2, 2, 4, 7, 8, 9, 10]) ➞ 5.5

BY Python вопросы на собеседовании с ответами


Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283

Share with your friend now:
tg-me.com/pythonjuniorjob/898

View MORE
Open in Telegram


Python вопросы на собеседовании с ответами Telegram | DID YOU KNOW?

Date: |

At a time when the Indian stock market is peaking and has rallied immensely compared to global markets, there are companies that have not performed in the last 10 years. These are definitely a minor portion of the market considering there are hundreds of stocks that have turned multibagger since 2020. What went wrong with these stocks? Reasons vary from corporate governance, sectoral weakness, company specific and so on. But the more important question is, are these stocks worth buying?

Dump Scam in Leaked Telegram Chat

A leaked Telegram discussion by 50 so-called crypto influencers has exposed the extraordinary steps they take in order to profit on the back off unsuspecting defi investors. According to a leaked screenshot of the chat, an elaborate plan to defraud defi investors using the worthless “$Few” tokens had been hatched. $Few tokens would be airdropped to some of the influencers who in turn promoted these to unsuspecting followers on Twitter.

Python вопросы на собеседовании с ответами from us


Telegram Python вопросы на собеседовании с ответами
FROM USA