a. Write a program that asks the user to enter a password. If the user enters the
Question:
a. Write a program that asks the user to enter a password. If the user enters the right password, the program should tell them they are logged in to the system. Otherwise, the program should ask them to reenter the password. The user should only get five tries to enter the password, after which point
the program should tell them that they are kicked off of the system.
b. Modify the higher/lower program so that when there is only one guess left, it says 1 guess, not 1 guesses.
c. The GCD (greatest common divisor) of two numbers is the largest number that both are divisible by. For instance, gcd(18, 42) is 6 because the largest number that both 18 and 42 are divisible by is 6. Write a program that asks the user for two numbers and computes their gcd. Shown below is a way
to compute the GCD, called Euclid’s Algorithm.
First compute the remainder of dividing the larger number by the smaller number
Next, replace the larger number with the smaller number and the smaller number with the
remainder.
Repeat this process until the smaller number is 0. The GCD is the last value of the larger
number.
Please help me with this problem Using Python as a language.