Lesson 7 of 34

താരതമ്യങ്ങൾ: True അല്ലെങ്കിൽ False

6 min 20 XP

രണ്ട് values താരതമ്യം ചെയ്യുമ്പോൾ Python True അല്ലെങ്കിൽ False എന്ന് ഉത്തരം നൽകുന്നു. ഇവയെ Booleans എന്ന് വിളിക്കുന്നു.

Example: edit me and press Run

Output Loading Python (first time takes a few seconds)
Press Run to see the result here.

= ഒരു value സൂക്ഷിക്കുന്നു (assign). == “ഇവ തുല്യമാണോ?” എന്ന് ചോദിക്കുന്നു (compare). ഇവ തമ്മിൽ മാറിപ്പോകരുത്!

Strings-ഉം താരതമ്യം ചെയ്യാം, പക്ഷേ capital letters പ്രധാനമാണ്: "Chennai"-ഉം "chennai"-ഉം തുല്യമല്ല.

Example: edit me and press Run

Output Loading Python (first time takes a few seconds)
Press Run to see the result here.

Challenge

+20 XP

price = 499, budget = 500. ആദ്യ വരിയിൽ price budget-നെക്കാൾ കുറവാണോ (<) എന്ന് print ചെയ്യൂ. രണ്ടാം വരിയിൽ price 500-ന് തുല്യമാണോ (==) എന്ന് print ചെയ്യൂ.

Output Loading Python (first time takes a few seconds)
Press Run to see the result here.