QuestionBank-Python_Programming
QuestionBank-Python_Programming
Derive a class Car from it and add an additional attribute fuel_type. Implement a
constructor and a display function.
2. Write a Python program to implement multiple inheritance with at least two parent
classes and one child class.
3. Write a Python program to implement a stack using push, pop, and display
functions.
4. Write a Python program to check whether a number is prime or not.
5. Write a Python program to print: 0 1 2 4 5 using a while loop and the continue
keyword.
6. Write a Python program to demonstrate method polymorphism.
7. Write a Python program to take three numbers as input and print the greatest of
those numbers using an if-else statement.
8. Write a Python program to implement a queue.
9. Write a Python program to implement single inheritance using super().
10. Write a Python program to implement hierarchical inheritance with at least one base
class and two derived classes.
11. Write a Python program to check whether a given number is a palindrome or not.
12. Write a python program to demonstrate multilevel inheritance.