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: |

Start with a fresh view of investing strategy. The combination of risks and fads this quarter looks to be topping. That means the future is ready to move in.Likely, there will not be a wholesale shift. Company actions will aim to benefit from economic growth, inflationary pressures and a return of market-determined interest rates. In turn, all of that should drive the stock market and investment returns higher.

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 id


Telegram PyThrone
FROM USA