Question
I. Write a program that asks the user for a word, and then checks if the word is a palindrome (i.e.if it reads the same
I. Write a program that asks the user for a word, and then checks if the word is a palindrome (i.e.if it reads the same backwards as forwards). For example, if the user enters "racecar," theprogram should print "Yes, this word is a palindrome." If the user enters "hello," the programshould print "No, this word is not a palindrome." (You can also have it just print True or False).II. Write a program that takes a string as input, and then prints out the string with all of thevowels replaced by asterisks. For example, if the user enters "hello world," the program shouldprint "h*ll* w*rld."III. Write a function that takes a list of numbers as input and returns the average of thosenumbers. For example, if the function is called with the list [1, 2, 3, 4, 5], it should return 3.IV. Write a function that takes a list of numbers as input and returns the largest number in the list.For example, if the function is called with the list [1, 5, 2, 8, 3], it should return 8.V. Write a program that takes a list of numbers as input and prints out all pairs of numbers in thelist that add up to a given target number. For example, if the input list is [1, 2, 3, 4, 5] and thetarget number is 7, the program should print out:[2, 5][3, 4]
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started