Posts for: #Questions

Telegram Queries - Interesting Questions

Last week I had the opportunity to see three interesting questions discussed in the Telegram groups, but the explanation would be too long for a chat.

  1. Why True, True, True == (True, True, True) returns True, True, False?

  2. Why -2 * 5 // 3 + 1 returns -3?

  3. How to add times in Python?

Why True, True, True == (True, True, True) returns True, True, False?

This question was presented as a weird syntax of Python, but it’s actually a visual trap. Look at the operator == (equal equal).

Read more

Telegram Queries - Interesting Questions

Last week I had the opportunity to see three interesting questions discussed in the Telegram groups, but the explanation would be too long for a chat.

  1. Why True, True, True == (True, True, True) returns True, True, False?

  2. Why -2 * 5 // 3 + 1 returns -3?

  3. How to add times in Python?

Why True, True, True == (True, True, True) returns True, True, False?

This question was presented as a weird syntax of Python, but it’s actually a visual trap. Look at the operator == (equal equal).

Read more