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

A) 1
B) -1
C) 2
D) 0

❗️ Ответ: B (-1). Объяснение:

🔍 ~ — побитовый оператор НЕ, он инвертирует все биты числа и вычисляет -(n+1) для числа. Поэтому 4 становится -( 4+1)= -5.

@python_job_interview
Please open Telegram to view this post
VIEW IN TELEGRAM



tg-me.com/python_job_interview/991
Create:
Last Update:

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

A) 1
B) -1
C) 2
D) 0

❗️ Ответ: B (-1). Объяснение:

🔍 ~ — побитовый оператор НЕ, он инвертирует все биты числа и вычисляет -(n+1) для числа. Поэтому 4 становится -( 4+1)= -5.

@python_job_interview

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




Share with your friend now:
tg-me.com/python_job_interview/991

View MORE
Open in Telegram


telegram Telegram | DID YOU KNOW?

Date: |

Telegram announces Search Filters

With the help of the Search Filters option, users can now filter search results by type. They can do that by using the new tabs: Media, Links, Files and others. Searches can be done based on the particular time period like by typing in the date or even “Yesterday”. If users type in the name of a person, group, channel or bot, an extra filter will be applied to the searches.

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.

telegram from pl


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