📖 Coding lessons · 4 of 4 · 4 min
if / else से फ़ैसले
प्रोग्राम if से फ़ैसले लेते हैं:
marks = int(input("Your marks? "))
if marks >= 90:
print("Excellent!")
elif marks >= 33:
print("Passed")
else:
print("Try again, you can do it!")
तुलना: == बराबर, != बराबर नहीं, >, <, >=, <=। इन्हें and / or से जोड़ें।
💡 एक = मान रखता है; दो == दो मानों की तुलना करते हैं।
