Question: Write a program with a function that takes a string; if the length of a string is even, the function should add a star (*)
Write a program with a function that takes a string; if the length of a string is even, the function should add a star (*) at the beginning of a string; else, the function should add a star at the end of a string. The function, then, capitalizes all letters and returns the new stringThe program should let the user enter a string and pass it to the function.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
