Using Python (possibly PyCharm), solve these exercises, explaining the steps. Thanks.
Question 3 - Create a program that asks the user for their user ID and password.
- If the user inputs either item incorrectly, it will print "Wrong!" and the user will be asked for their user ID and password again.
- This will continue until the user inputs BOTH the correct user ID AND correct password.
- The program will then print "Correct!" and will tell the user how many times it took them before entering the correct email and password. (For your program, set the user ID to your email address and the password to your name.)
Question 4 - Create a batch program that converts a file with a list of plain numbers from gallons to liters. (The sample file can be a simple .txt file with a different number on each line.) 1 gallon = 3.78541 liters.
- The program should ask the user for the input file and then ask the user if they want the output (processed numbers) to be:
1. Saved to an output file, or
2. Printed on the screen.
- If the user selects the first option, they should be asked for an output file and the program should place all conversions there. If the user selects the second option, the conversions should be displayed on the screen.