1. Change the following Python code from using a while loop to for loop:
2. Change the following Python code from a for loop to a while loop:
Knowing that the correct username is John and the correct password is 123456789, initially open and run several times by entering different values each time the password.py program. Then, erase the solutiontry and to solve it yourself.
Write a Python program to calculate the sum and average of n integer numbers (input from the user). Input 0 to finish.