Lesson 7 of 34

పోలికలు: True లేదా False

6 min 20 XP

రెండు విలువలను పోల్చినప్పుడు 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.

= విలువను నిల్వ చేస్తుంది (assign). == “ఇవి సమానమా?” అని అడుగుతుంది (compare). వీటిని కలపవద్దు!

strings ని కూడా పోల్చవచ్చు, కానీ పెద్ద-చిన్న అక్షరాలు ముఖ్యం: "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.