Input: Enter number of terms: 5
Output: The fibonacci series
0 1 1 2 3
Input: Enter a Number: 5
Output: The factorial for 5 is
120
Input: Enter 1st Number: 6
Enter 2nd Number: 12
Output: 6.0
Input: Enter 1st Number: 6
Enter 2nd Number: 8
Output: 24.0
Input: Enter a Number: 14
Output: This is not an Armstrong number"
Input: Enter a Number: 370
Output: This is an Armstrong number
Input: Enter a Number: 4
Output: This is not a fibonacci number
Input: Enter a Number: 34
Output: This is a fibonacci number
Input: Enter number of elements : 4
Enter elements of the list
34
54
65
77
[34,54,65,77]
Output: Maximum element in the list: 77
Minimum element in the list: 34
Input: Enter a number: 121
Output: The number 121 is Palindrome
Input: Enter a number: 123
Output: Output: The number 123 is not Palindrome
Input: Enter a number: 2
Output: 2 is a prime number
Input: Enter a number: 4
Output: 4 is not a prime number
Input: Enter number of elements : 3
Enter elements of the list
1
2
3
Output: True
Input: Enter number of elements : 3
Enter elements of the list
4
2
3
Output: Flase
Input: Enter number of elements : 4
Enter elements of the list
34
54
65
77
[34,54,65,77]
Output: [77,65,54,34]
Input: Enter number of elements : 4
Enter elements of the list
34
54
65
77
[34,54,65,77]
Enter number to be searched : 8
Output: if a.index(number) == True:
ValueError: 8 is not in list
Input: Enter number of elements : 4
Enter elements of the list
1
2
3
4
[1,2,3,4]
Output: Second largest number in the list: 3
Input: Enter number of elements : 4
Enter elements of the list
1
2
3
4
[1,2,3,4]
Output: The swapped list [4, 2, 3, 1]
Input: Enter number of elements : 4
Enter elements of the list
1
2
3
4
[1,2,3,4]
Output: The clonned list [1, 2, 3, 4]
Input: Enter number of elements : 7
Enter elements of the list
1
2
3
4
1
1
1
[1,2,3,4,1,1,1]
Enter the element to be checked: 3
Output: The occurance of 3 is 5
Input: a = [1,2,3,4,[],5,[],[],8]
Output: List after empty list removal : [1, 2, 3, 4, 5, 8]
Input: Enter number of elements : 4
Enter elements of the list
1
2
3
4
[1,2,3,4]
Enter the first element to be removed : 1
Enter the second element to be removed : 3
Output: The list after removing multiple elements: [3, 4]
Input: Enter number of elements : 4
Enter elements of the list
1
2
3
4
5
6
[1,2,3,4,5,6]
Chunk on which new list form: 2
Output: The chunked list: [[1, 2], [3, 4], [5, 6]]
Input: Enter number of elements : 4
Enter elements of the list
1
2
3
4
5
6
[1,2,3,4,5,6]
Chunk on which new list form: 2
Output: The cumulative sum of list: [1, 3, 6, 10, 15]
Input: Enter a numeric string: 1
Enter the increment number: 12
Output: Incremented result: 13
Input: lisOfDicts = [
{"a": 1, "b": 5, "c": 3},
{"a": 2, "b": 7, "c": 1},
{"a": 3, "b": 3, "c": 9},
]
Output: The maximum of each key in list: {'a': 3, 'b': 7, 'c': 9}
Input: Enter number of elements: 4
Enter elements of the list
1
2
3
4
[1, 2, 3, 4]
Digit to be removed:3
Output: Modified list: [1, 2, 3]
Input:x = ["a", "d", "e", "f", "g", "h", "i"]
y = [0, 0, 1, 2, 2, 0, 1]
Output: ['a', 'd', 'h', 'e', 'i', 'f', 'g']