Lesson 10 of 34

and, or, not: షరతులను కలపడం

8 min 25 XP

and: రెండు వైపులా True అయితేనే True. or: కనీసం ఒక వైపు True అయితే True. not: True ను False గా, False ను True గా మారుస్తుంది.

Example: edit me and press Run

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

నిజ జీవిత ఉదాహరణ: ఉద్యోగానికి అర్హత కావాలంటే డిగ్రీ, కనీసం 60% మార్కులు ఉండాలి.

Example: edit me and press Run

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

పరిధిని చూడటానికి Python లో సులభ మార్గం: 18 <= age <= 60

Challenge

+25 XP

input() తో ఒక సంవత్సరాన్ని చదవండి. Leap year అయితే Yes, కాకపోతే No print చేయండి. నియమం: 4 తో భాగించబడాలి కానీ 100 తో కాదు, లేదా 400 తో భాగించబడాలి.

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