Please show in python and steps
Write a program to show users a set of choices, and then respond to those choices until they choose to quit ('q'). For each option, write a function. Each function should do as follows: halfstring() - Ask the user to enter the string of even length. Your function should display the last half string. For example, HelloWorld should display World. first_three_char() - As the k user to enter the string. Your function should display the string made up of the first three characters. For example, HelloWorld will display Hel. - If the string is shorter than length 3, display whatever there is, so "He" yields "He", and the string is empty, then display "Empty String." When a user enters ' q ', it should display "See you later". See the sample output. Welcome! What would you like to do? [1] Enter 1 to print Half string. [2] Enter 2 to print First three characters. [q] Enter ' q ' to print quit. Enter your options: 1 Please input string of even length: Helloworld World [1] Enter 1 to print Half string. [2] Enter 2 to print First three characters. [q] Enter " q ' to print quit. Enter your options: 1 Please input string of even length: hello Please enter an even string. [1] Enter 1 to print Half string- [2] Enter 2 to print First three characters. [q] Enter ' q ' to print quit. Enter your options: 2 Please enter a string: test tes [1] Enter 1 to print Half string. [2] Enter 2 to print First three characters. [q] Enter ' q ' to print quit. Enter your options: 2 Please enter a string: tes tes [1] Enter 1 to print Half string. [2] Enter 2 to print First three characters. [q] Enter " q " to print quit. Enter your options: 2 Please enter a string: Empty string. [1] Enter 1 to print Half string. [2] Enter 2 to print First three characters. [q] Enter ' q ' to print quit. Enter your options: q See you later