Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions