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


PyThrone Telegram | DID YOU KNOW?

Date: |

The messaging service and social-media platform owes creditors roughly $700 million by the end of April, according to people briefed on the company’s plans and loan documents viewed by The Wall Street Journal. At the same time, Telegram Group Inc. must cover rising equipment and bandwidth expenses because of its rapid growth, despite going years without attempting to generate revenue.

The seemingly negative pandemic effects and resource/product shortages are encouraging and allowing organizations to innovate and change.The news of cash-rich organizations getting ready for the post-Covid growth economy is a sign of more than capital spending plans. Cash provides a cushion for risk-taking and a tool for growth.

PyThrone from tw


Telegram PyThrone
FROM USA