Answered step by step
Verified Expert Solution
Question
1 Approved Answer
We have a number of apples, n. We need to determine how many bags of apples we can fill (each bag holds exactly a dozen
We have a number of apples, n. We need to determine how many bags of apples we can fill (each bag holds exactly a dozen apples), and we want to know how many apples would be left over after we filled the bags.
Which of the following will calculate num_of_bags and left_over variables? (python)
a) num_of _bags= n//12
left_over = n /12
b) num_of_bags = n // 12
left_over = n % 12
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started