Write a menu driven program for following: a) display a Fibonacci series b) compute Factorial of a number c) to check whether a given number is odd or even. d) To check whether a given string is palindrome or not.
Creating a menu-driven program in Python for the tasks you've mentioned is a practical and useful exercise for beginners. Here's a step-by-step guide on how to implement such a program:
```python
# Function to display the Fibonacci series
def display_fibonacci():
n = int(input("Enter the number of terms in the Fibonacci series: "))
a, b = 0, 1
count = 0
while count < n:
print(a, end=' ')
a, b = b, a + b
_________ ___ ________ ___ ______ _______ __________ ____.
_______ ___ ______ _________ __________ _____ ______ ______.
___ _________ _______ ___ ________ _______ _________ _____ ________ _______.
________ _____ _________ _______ __________ ___ _______ _______ ____ ________ ____.
___ _____ _______ _________ __________ ____ __________ __________.
_____ ___ ____ ____ _______ ______ _____ ___.
_____ ____ _____ _________ ____ ___ _________ _________ ________ _______ ________ __________.
_________ _____ _____ ___ ___ _________ ____ ________.
__________ ______ _________ _____ ______ _____ ___.
_________ __________ ________ __________ ___ _________ _____ ______ __________ ______ ___ __________.
_____ _______ __________ ______ __________.
_________ ____ _________ ________ _________ ________ ___ _______ ___ _________.
_________ _____ ______ ____ _______ _____ ____ ____ __________.
______ ______ _______ _______ ______ ____ ____ ___ ________ _________.
__________ _______ ______ ___ ____ _____ ___ _____ ____ _____.
______ __________ ___ _________ ____ _______ ____ __________.
_______ __________ ______ _________ _________.
_________ ________ ___ ________ ______ _________ _____.
____ _________ _________ ____ __________ _____ ________ _____ ___.
_____ ___ ________ ____ ______ __________ ______ _______ ____ _______.
____ _______ _______ _______ ____ _____ ______ _________ _______.
___ ____ ___ _____ _____ ______.
______ ___ _____ __________ _________ _______.
____ _________ _____ ___ ____ _____ _______ _____ __________ _____.
_______ ____ ________ ______ _____ __________ __________ ________.
_____ _____ __________ ____ ____ _________ ____ ____ ______ __________ _______.
_______ _______ ___ ____ ___ ________ ____ ______ __________.
_________ ______ __________ _______ ___ __________ _______.
______ _______ ____ ______ ___ ____ _____ _________ ______ ______ ______.
_____ ______ _____ ________ ________ ___ _____ ______.
___ __________ ________ _______ ____ _________ _______ ______ ____ _________ ______.
________ __________ _______ ___ ____ __________ _____ _________ ________ ___.
_______ _______ ____ __________ _________ _________.
__________ _________ __________ _________ _______ _____ ___ ______ _________ _________ ___.
________ _____ ____ ____ _____ __________ _______ __________ _______.
___ ___ ____ ______ _____ _________.
___ ___ ____ _____ ___ ________ _____ ____ _______ ____ _____.
_________ ________ _______ ___ ____ __________.
________ ______ __________ ____ ________ _______.
_________ ________ __________ ________ __________ ______ ______ ___ ______ ___ ____ ________.
___ __________ _____ _____ ______ _________.
__________ ______ _____ ________ _________ ______ _________ __________ _____ ____ _______ _______.
______ _____ _____ _________ _________ _________.
_______ ________ ______ _____ _____ ___ _________ ________ ____ ________.
__________ __________ __________ _______ _________ _______ _______ ____ ____ ________ ________ ___.
____ _________ ______ _______ ________ __________ ___ ______ _____ ________ __________.
_______ _______ __________ _______ ______ _________ __________ _____ ________ __________ ___ _________.
_______ _________ _______ ___ ______ ______.
_____ __________ ___ ______ _____.
___ __________ _____ ____ ___ _______ __________ ______.
____ ______ _________ _____ ____ _____.
____ _________ ____ ____ ____ ________ ______ _______ ________ _________ ___.
________ ____ __________ _______ _____ ___ ________ ____ _______ __________ _______ ___.
____ __________ ___ ______ _____ ______.
____ ________ ______ _______ ____ _______ ________ _______ _____.
______ ___ ________ ____ __________ ______ ____ ________ _______ _____.
_______ _______ __________ ______ _______ ___ ___ _____ ______.
_______ ____ ____ __________ __________.
________ _________ ______ _______ _________.
________ _________ ____ ________ __________ ____ _____.
Get Full Answer on WhatsApp