- This event has passed.
Practice Questions Conditional Statement
May 11, 2024 @ 8:00 am - 5:00 pm
- Write a Python program to check if a given number is greater than 10.
- Write a Python program to check if a given number is less than 5.
- Write a Python program to check if a given number is equal to 20.
- Write a Python program to check if a given number is not equal to 10.
- Write a Python program to check if a given number is between 1 and 10 (exclusive).
- Write a Python program to check if a given number is positive and even.
- Write a Python program to check if a given number is negative and odd.
- Write a Python program to check if a given year is a leap year using the modulo operator.
- Write a Python program to check if a given number is divisible by 4 and 6.
- Write a Python program to check if a given character is a vowel (a, e, i, o, u).
- Write a Python program to check if a given character is a consonant.
- Write a Python program to check if a given string contains the substring “hello”.
- Write a Python program to check if a given string contains the substring “world”.
- Write a Python program to check if a given string is in uppercase.
- Write a Python program to check if a given string is in lowercase.
- Write a Python program to check if a given string is alphanumeric.
