I dont really have a full grasp on loops can someone explain to me this ? Store the list of denominators in your program as shown below: list_den = [2, 3, 4, 0, 5, 6, 8] Write a program that prompts the user for numbers and store the input numbers in a list of numerators called list_num. list_num must contain the same number of elements as list_den. If the user inputs a number that is lower than 10, display an error message and repeat the process until list_num contains numbers that are greater than or equal to 10. You will now divide a number in the list_num by the corresponding number from list_den and store the result in another list named result. You will use a loop to do this. For example, the first item in result will contain the result of dividing the first item in the list_num by the first item in list_den, and so on. Since list_den contains a denominator with the value 0, you will need to store -1 as the result when a division by zero is attempted.
I dont really have a full grasp on loops can someone explain to me this ?
Store the list of denominators in your program as shown below:
list_den = [2, 3, 4, 0, 5, 6, 8]
Write a program that prompts the user for numbers and store the input numbers in a list of numerators called list_num. list_num must contain the same number of elements as list_den. If the user inputs a number that is lower than 10, display an error message and repeat the process until list_num contains numbers that are greater than or equal to 10.
You will now divide a number in the list_num by the corresponding number from list_den and store the result in another list named result. You will use a loop to do this. For example, the first item in result will contain the result of dividing the first item in the list_num by the first item in list_den, and so on.
Since list_den contains a denominator with the value 0, you will need to store -1 as the result when a division by zero is attempted.
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images