Python Programming Assignment.
1. Creating pyramid patterns in Python is an excellent way to enhance your programming
skills and gain a deeper understanding of loops and control structures. Create a full
Pyramid Patterns in Python Recursion. You can use (*) asterisk /star for the output
(3mks).
2. Given two numbers, write a Python code to find the Maximum of these two numbers
(2mks).
3. A palindrome is a word, number, phrase, or other sequence of symbols that reads the
same backwards as forwards, such as madam or racecar, the date and time 12/21/33
12:21, and the sentence: “A man, a plan, a canal — Panama”. WRITE A Python code to
test if a string is palindrome or not. (3mks)
4. Given a string str which may contain lowercase and uppercase characters. The task is to
remove all duplicate characters from the string and find the resultant string. The order of
remaining characters in the output should be same as in the original string. (2mks)