Number Solutions
Write a method,
#division_plus_remainder, that accepts two integers,big_intandsmall_int, as arguments. Your method should find the number of timessmall_intcompletely divides intobig_int, and then add the remainder that's left over. For example,divisor_plus_remainder(7, 2)should equal4.def division_plus_remainder(big_int, small_int) quotient = big_int / small_int remainder = big_int % small_int quotient + remainder endWrite a method
#divide_two_places, that accepts two floats,big_floatandsmall_float, as arguments. Your method should dividebig_float/small_floatand round to two decimal places.def divide_two_places(big_float, small_float) quotient = big_float / small_float quotient.round(2) endTest your order of operations knowledge! You don't need to write any code here! Use
pryto test your answer. Solve this expression:5 + 3 * 3 ** 2 + ( 9 - 2 ** 2 ) ** 2Answer: 57