Python questions for practice

You know it when you do it
Chapter Practice Questions Level
1. Python
Conditions
WAP to check if a given number is positive and even.
>>> practiceQuestion(20)
True
>>> practiceQuestion(-2)
False
>>> practiceQuestion(3)
False
2. Python
Conditions
WAP to check if a given number is divisible by 7 or 11.
>>> practiceQuestion(21)
True
>>> practiceQuestion(22)
True
>>> practiceQuestion(23)
False
3. Python
Conditions
WAP to check if a given number can represent a leap year.
>>> practiceQuestion(120)
True
>>> practiceQuestion(123)
False
>>> practiceQuestion(200)
False
4. Python
Conditions
WAP to check if a given number is Prime.
>>> practiceQuestion(17)
True
>>> practiceQuestion(9)
False
>>> practiceQuestion(-2)
False
5. Python
Conditions
WAP to check if three given number can represent sides of equilateral triangle.
>>> practiceQuestion(2, 2, 2)
True
>>> practiceQuestion(-3, -3, -3)
False
>>> practiceQuestion(2, 3, 2)
False
6. Python
Conditions
WAP to check if three given number can represent sides of issceles triangle.
>>> practiceQuestion(2, 2, 1)
False
>>> practiceQuestion(-3, 1, -3)
False
>>> practiceQuestion(2, 3, 2)
True
7. Python
Conditions
WAP to check if three given number can represent sides of scalene triangle.
>>> practiceQuestion(2, 2, 2)
False
>>> practiceQuestion(3, 4, 5)
True
>>> practiceQuestion(2, 3, 2)
False
8. Python
Conditions
WAP to return "Fizz" if the given number is divisible by 3, "Buzz" if it is divisble by 5, "FizzBuzz" if it is divisble by both and the same number if it is divisible by none.
>>> practiceQuestion(6)
Fizz
>>> practiceQuestion(15)
FizzBuzz
>>> practiceQuestion(7)
7