Question: Write a python program that uses 6 functions NO HARDCODING 1. A function which will declare a list, ask the user to enter the first
Write a python program that uses 6 functions
NO HARDCODING
1. A function which will declare a list, ask the user to enter the first and last names, and the user id. The function then should print the data from the list.
2. A function which will ask the user to enter 2 positive numbers only, if any of the entered value is not positive the function should ask the user to enter another two values and so on(as shown in the sample below). The same function should call functions to respectively print the 2 numbers, find the bigger number, and produce the division of the 2 numbers.
3. A function to print the 2 numbers.
4. A function to find the bigger value and print it.
5. A function to divide 2 numbers and print their division.
6. A main function to call the proper functions for the orderly execution of the program.
7. The program should have the format shown on the sample run.
SAMPLR RUN:
Enter your first name, last name, and ID: Alex John 1000
Student Name: Alex John
Student ID: 1000
Enter two even numbers 1 4
Both numbers must be even numbers, try again:
Enter two even numbers 2 3
Both numbers must be even numbers, try again:
Enter two even numbers 4 2
The two even numbers are : 4 and 2
The bigger number out of 4 and 2 is = 4
The division of the two numbers is : 4 / 2 = 2.0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
