Загрузка...

Python me OR ka Result 5 Kaise? 😳🔥 | Hidden Trick #shorts #pythonchallenge #pythontricks #viral

💡 Python Trick Question

What will be the output of this code? 😳👇

a = 0
b = 5

print(a or b)
print(b or a)

⏳ Try to answer before checking!

👇 ✅ Solution:
In Python, the "or" operator returns the first True value, not just True/False.

👉 Output:
5
5

🔥 Important concept: truthy and falsy values

💬 Comment your answer before checking!

🚀 Follow for daily Python tricks

#python #coding #programming #shorts #learnpython

Видео Python me OR ka Result 5 Kaise? 😳🔥 | Hidden Trick #shorts #pythonchallenge #pythontricks #viral канала CodeSpark_hub
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять