exercises the code below prints the numbers from to rewrite the code using while loop to accomplish the same thing for in range( , )print( (awrite program that uses while loop (not for loopto read through string and print the characters of the string one-by-one on separate lines (bmodify the program above to print out every second character of the string good program will make sure that the data its users enter is valid write program that asks the user for weight and converts it from kilograms to pounds whenever the user enters weight below the program should tell them that their entry is invalid and then ask them again to enter weight [hintuse while loopnot an if statement write program that asks the user to enter password if the user enters the right passwordthe program should tell them they are logged in to the system otherwisethe program should ask them to reenter the password the user should only get five tries to enter the passwordafter which point the program should tell them that they are kicked off of the system write program that allows the user to enter any number of test scores the user indicates they are done by entering in negative number print how many of the scores are ' ( or abovealso print out the average modify the higher/lower program so that when there is only one guess leftit says guessnot guesses recall thatgiven string ss index(' 'returns the index of the first in and an error if there is no (awrite program that asks the user for string and letter using while loopthe program should print the index of the first occurrence of that letter and message if the string does not contain the letter (bwrite the above program using for/break loop instead of while loop the gcd (greatest common divisorof two numbers is the largest number that both are divisible by for instancegcd( is because the largest number that both and are divisible by is write program that asks the user for two numbers and computes their gcd shown below is way to compute the gcdcalled euclid' algorithm first compute the remainder of dividing the larger number by the smaller number nextreplace the larger number with the smaller number and the smaller number with the remainder repeat this process until the smaller number is the gcd is the last value of the larger number