Write a Python program that would do the following: 1) Prompt the user to enter a string.
Question:
Write a Python program that would do the following:
1) Prompt the user to enter a string.
2) The program should print the entered string in all lower case letters on the first line.
3) The program should print the entered string in all upper case letters on the second line.
4) The program should extract the first and last characters from the entered string and print the extracted characters in both upper and lower case letters separated by three hyphens (-) as shown below on the third line.
5) The program should find and print the length of the entered string on the fourth line.
For example, if the user enters the string Welcome to HCC , then the program should produce the following output:
welcome to hcc
WELCOME TO HCC
W---w---C---c
String length: 14
Introduction to Java Programming, Comprehensive Version
ISBN: 978-0133761313
10th Edition
Authors: Y. Daniel Liang