Telegram Group & Telegram Channel
Что выведет этот код?

Когда мы объявляем какую то последовательность, где элементы идут через запятую и без явных скобок, то создается tuple:

nums = 1, 2, 3, 4
type(nums) # <class 'tuple'>


А функция sorted принимает любой iterable и всегда возврает
list
.

А кортеж (1, 2, 3, 4) не равен списку [1, 2, 3, 4], даже если значения равны.



tg-me.com/pythrone/6
Create:
Last Update:

Что выведет этот код?

Когда мы объявляем какую то последовательность, где элементы идут через запятую и без явных скобок, то создается tuple:


nums = 1, 2, 3, 4
type(nums) # <class 'tuple'>


А функция sorted принимает любой iterable и всегда возврает
list
.

А кортеж (1, 2, 3, 4) не равен списку [1, 2, 3, 4], даже если значения равны.

BY PyThrone




Share with your friend now:
tg-me.com/pythrone/6

View MORE
Open in Telegram


telegram 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?

Telegram is riding high, adding tens of million of users this year. Now the bill is coming due.Telegram is one of the few significant social-media challengers to Facebook Inc., FB -1.90% on a trajectory toward one billion users active each month by the end of 2022, up from roughly 550 million today.

telegram from ua


Telegram PyThrone
FROM USA