Lesson 10 of 34

and, or, not: நிபந்தனைகளை இணைப்பது

8 min 25 XP

and: இரண்டும் True ஆனால் மட்டுமே True. or: ஏதாவது ஒன்று 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.

நிஜ உதாரணம்: வேலைக்குத் தகுதி பெற degree வேண்டும், மேலும் 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

ஒரு ஆண்டை (year) 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.