Define function print_popcorn_time() with parameter bag_ounces. If bag_ounces is less than 3, print "Too small". If greater than 10, print "Too large". Otherwise, compute and print 6 * bag_ounces followed by "seconds". End with a newline. Remember that print() automatically adds a newline.

Answers

Answer 1

Answer:

In Python:

def print_popcorn_time(bag_ounces):

   if bag_ounces < 3:

       print("Too small")

   if bag_ounces > 10:

       print("Too large")

   else:

       print(str(6 * bag_ounces)+" seconds")

       

Explanation:

This defines the function

def print_popcorn_time(bag_ounces):

This checks if bag_ounces < 3

   if bag_ounces < 3:

If yes, it prints too small

       print("Too small")

This checks if bag_ounces > 10

   if bag_ounces > 10:

If yes, it prints too big

       print("Too large")

If otherwise,

   else:

Multiply bag_ounces by 6 and print the outcome

       print(str(6 * bag_ounces)+" seconds")

Answer 2

Answer:

Explanation:

def print_popcorn_time(bag_ounces):

  if bag_ounces < 3:

      print("Too small")

  elif bag_ounces > 10:

# Use of 'if' for this portion, will only yield a test aborted for secondary tests

      print("Too large")

  else:

      print(str(6 * bag_ounces)+" seconds")

user_ounces = int(input())

print_popcorn_time(user_ounces)


Related Questions

Look out for users with this photo.

Answers

Answer:

why whats wrong with it

Explanation:

omg thank you someone just answered my question and they told me to go to the link for the answer but i knew it was a trick lol

What is the first step in finding a solution to a problem? (5 points)
Choose a solution.
Think of options to solve the problem.
Try the solution.
Turn the problem into a question.

Answers

Answer:

Turn the problem into a question.

Explanation:

How do you resolve conflicts in your life??

Answers

Answer:

What problems?

Explanation:

What are the basic tasks performed by an operating system?​

Answers

Answer:

An operating system is a software which performs all the basic tasks like file management, memory management, process management, handling input and output, and controlling peripheral devices such as disk drives and printers.

Explanation:

i hope it helps:)

I need help 40 points and brainless if you answer

Answers

Answer:

The answer is C

Explanation:

Which method finds the greatest common divisor of 14 and 35?

import math

math. ____ (14,35)

Answers

Answer:

gcd method

Explanation:

Given

The code snippet

Required

Which method completes the code

To return the gcd of numbers, simply use the gcd method.

So: the complete code is;

import math

math.gcd(14,35)

Answer:

gcd

Explanation:

it means greatest common divisor

An ______ is a simplified image. (4 letters) This is for a paxton paterson

Answers

Answer:

allegory.

p.s: this is the right answer but with out the four letters you need

Which mode would you use to take a photograph inside a cave in dim light?
A.
program mode
B.
aperture priority mode
C.
auto mode
D.
night mode
E.
sports mode

Answers

Answer:

I think B or A because when you go in a dark place you can use this

Answer:

D. Night Mode.

Explanation:

I am not 100% sure but it seems like since you are in a cave in dim light it would be like at night with the moon.

opposite word of reassembling​

Answers

OPPOSITE WORDS OF REASSEMBLING

dispersedisbandseparate
opposite word of reassembling is separate

Which of the following is a strategy used to enhance communication in a presentation?
using as few slides as possible by increasing the amount of information on each slide
using bullets to break up text and to highlight important talking points
using a large variety of background colors and slide transitions
using images to fill up unused space on each slide

Answers

Answer: using bullets to break up text and to highlight important talking points

Explanation:

When making a presentation, it is vital for one to communicate properly with the audience and pass the message across to them well and clearly.

Using bullets to break up text and to highlight important talking points can be used to enhance communication in a presentation. This makes communication easier.

We should note that every other options given aren't appropriate and won't enhance communication.

Answer: using bullets to break up text and to highlight important talking points

Explanation:

PLEASE HELP ME! Will report ignorant answers!
Original answers only please.
Why is it important that software be compatible with your operating system? What kind of complications may occur if the two are incompatible?

Answers

Answer:

It is important so your computer can function properly. the two things that might happen if they are not compatible are that it might crash your computer and that your computer might not function properly.

A software must be compatible with the operating system of its host computer

Important of software compatibility with operating system?

Software as used here are application programs designed for a computer.

It is important the software is compatible with the operating system of the computer in order to run without hassles.

Take for instance, a software designed to run on a 64-bit operating system will not run perfectly on a 32-bit operating system

The kind of complications that may occur

As stated above, a software designed to run on a 64-bit operating system will not run perfectly on a 32-bit operating system.

Other complications include:

It can cause the system to hangIt can result as a waste, because of its inability to run properly

Read more about software at:

https://brainly.com/question/1538272

#SPJ2

What is Colby Knox known for?

Answers

Answer:The School in the Woods. Colby Knox is known for his work on The School in the Woods

Explanation:

Answer:

the school on the wood ghost is known as Colby Knox.

You work for ScreensRUs, a business that sends repair people to sites to fix damaged car windshields. Your employer provides company mobile phones, but you think it should provide smartphones instead. Write a memo outlining two reasons why the firm should upgrade its devices.

Answers

Answer:

tldr; treat this like a brief essay. some reasons would be "having a smartphone makes your job easier", "smartphones can make the job easier to do on the go".

Explanation:

hi there!

ok, so this should be pretty simple.  first, we should take a look at the issue in the scenario;  you're an employee for a company that relies heavily on technology to get your job done and send other employees to their customer's locations.  because of this, getting poor quality mobile phones would make your job a little bit harder to do.

to put this in a little bit of a better perspective, imagine that you're an employee in a store, and your job is to sweep the floor. however, your boss only gives you a dust pan and bad quality broom.  that'd make you wish that you had some better equipment to get your job done faster, right?

a memo is basically a written message in a business place; in modern days, they're usually emails, but back in the day they were letters and such.  for this assignment, treat this like an essay! however, be sure to be to-the-point.

now to answer the question; we've already covered one reason that you could use in the memo: "having a smartphone would make your job easier". now think about what else having a smartphone would do compared to a mobile company phone.  

here's an example of a memo!

good luck! hope this helped.

Am I missing something?

Answers

Shshahw auehebehej jagehevehe suene she e e r r d f g g g e de w ehehejenebe e e where
Other Questions
Reporting statements"Everybody must try to do thier best" , jill said Could someone please answer this for me and explain clearly how to do it? The chromosomes are packed together tightly with what in the nucleus of the cell what is a circle with corners? do you like dinosaurs? this is an almost accurate representation of the largest water animals ever to have lived. hope you enjoy brainlyest and twenty points. Help pls will give pts Determine the independent variable in the situation:The more groceries people purchase, the more money people spend.1.Money Spent2.Number of groceries purchased PLZ HELP ME ITS ALMOST DUE Why were landowners responsible for road repairs?The government paid them for the repairs.O They had the wealth to repair it.They knew their land and could best keep up with it.They refused to allow others to take care of it. Why did the US decide to help protect South Korea? O It gave the US a way to directly fight the USSR O The UN wanted to stop Japan's colonial expansion North Korea's invasion directly impacted many American lives Truman's policy of containment called for US support against communism. Fill in the blanks to completea summary of this part of the story.NishaNishatells Neel the elephants are usuallyNisha uses herPalm Com to report that she Help me it's due today pls If JKLM is an isosceles trapezoid, find each value listed below. Help ASAP !! PLEASE HELP ME WITH THIS1.)What did many early American samplers show?pictures without special meaningsscenes from storybooksportraits and decorative scrollsalphabets and numbers2.)Who usually made early American samplers?womenschoolboysmenschoolgirls3.)Which statement about early American furniture is true?Frakturs on furniture were often religious messages or blessings for the home.Decorated pieces of furniture were used for display, not for storage.Chinese and Japanese immigrants made many pieces of decorated furniture.4.)Which statement about limner portraits is true?They were often painted by self-taught artists.Owners used them as signs of military strength.They included objects that tell about the artist.5.)Is this statement true or false?Artists stenciled designs by dabbing or brushing paint through cutout shapes.TrueFalse6.)Is this statement true or false?Stenciling was a very expensive way to decorate walls.TrueFalse7.)Which statement about folk art landscapes is true?They show more details in the background than the foreground.Many folk art landscapes show farm scenes.They are painted by artists trained in art academies. People with albinism have little pigment in their skin, hair, and eyes. The gene that governs albinism has two forms (called alleles), which we denote by a and A. Each person has a pair of these genes, one inherited from each parent. A child inherits one of each parent's two alleles independently with probability 0.5. Albinism is a recessive trait, so a person is albino only if the inherited pair is aa.a. Beths parents are not albino, but she has an albino brother. This implies that both of Beths parts have type Aa. Why?b. Which of the type aa, Aa, AA could a child of Beths parents have? What is the probability of each type?c. Beth is not albino. What are the conditional probabilities for Beths possible genetic types, given this fact? what is 92 minus 58 times 183 plus 45 divided by 2 times 59 plus 4 plus 8 plus 41 minus 123 times 902 ????? PLEASE HELP hey....lol i need help on this 2X-5 Helpppppppppppp plz helpppppppppppppp plsss write a short summary of the short story All Summer In a Day by Ray Bradbury what is the adjective in these sentence the elephant had a long twisty trunk.which of the word is adjective .