Computers and Technology

Does anyone know how to do these exercises on python computing, on the for and while topic:1. (exercise for)create a program that prompts the user for a number between 1 and 10, inclusive.inclusive.as many times as indicated by the number entered by the user, the program should, using thefor statement: ask the user to enter a string. using the for statement, print the string letter by letter downwards, uppercase theletters, and the numbers multiplied by two.for example, if the user enters a 2, and enters the following data that we see in bold type, theprogram should display a result similar to the following:enter a string: hy78hy1416enter a string: 2m4nb64m8nb122. (exercise while)create a result variable, which will initially be worth 0.with the help of the while, continuously perform the following tasks: ask the user for a number. ask the user for an operation, which can be +, -, x or /. if the user has entered the + operation, the program will add the number to the contents of thethe previous operation. if instead the user has entered the operation -, the program will subtract the number from theif the user has entered the - operation instead, the program will subtract the number from the contents of the previous operation. if instead the user has entered the operation x, the program will multiply the numberby the contents of the previous operation. if instead the user has entered the operation /, the program will divide the contents ofif the user has entered the operation /, the program will divide the contents of the previous operation by the number entered. print the statement "the result of applying the operation [variable with operation] by the number [variable with accumulated result beforenumber [variable with accumulated result before the operation] and [variable withnumber entered by user] is [variable with accumulated result after the operation].operation] if you want to continue. if the user enters no, the program will terminate.when finished, the program will display the result of having performed all operations.