The following questions will test your Python skills, please attempt as many as you can.
Write programs that do the following:
1. Takes input of two numbers and returns the following:
a. The sum of the numbers added together
b. The result of multiplying the numbers together
c. The result of dividing the first number by the second number
d. The result of subtracting the first number from the second number
2. Takes input of two numbers and return the result of dividing the larger number by the smaller number.
3. Asks the user a simple maths equation to which the user gives an answer. You then need to return if they have entered the correct or incorrect answer.
4. Take input of a list of 8 items and prints out the list.
5. Take input of a number list, which contains as many values as they choose. You then need to sort the list from smallest number to largest. You should print the list before sorting and after.
Write programs that do the following:
1. Takes input of two numbers and returns the following:
a. The sum of the numbers added together
b. The result of multiplying the numbers together
c. The result of dividing the first number by the second number
d. The result of subtracting the first number from the second number
2. Takes input of two numbers and return the result of dividing the larger number by the smaller number.
3. Asks the user a simple maths equation to which the user gives an answer. You then need to return if they have entered the correct or incorrect answer.
4. Take input of a list of 8 items and prints out the list.
5. Take input of a number list, which contains as many values as they choose. You then need to sort the list from smallest number to largest. You should print the list before sorting and after.
