Question
hi, please use spyder formatting or python 3 accessible
Apps M Gmail Maps YouTube Python 3 1h 51m left 1. Multiplying with a Sentinel and Branching Negative ALL Write a program that
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Python Code:

#Initialize product as 1
product=1
while True:
print("Enter a number or done to quit:")
str=input()
  
#If user input number
if str!='done':
n=int(str)
if n<0:
product=product*n
  
# IF user input done
else:
break;
  
#Printing result
print("The product of negative numbers is:")
print(product)

main.py 1 #Initialize product as 1 2 product=1 3-while True: print(Enter a number or done to quit:) str=input() #If user in

Add a comment
Know the answer?
Add Answer to:
hi, please use spyder formatting or python 3 accessible Apps M Gmail Maps YouTube Python 3...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Apps 3. G Gmail YouTube Maps -11 POINTS SCALCET8 4.1.029. Find the critical numbers of the...

    Apps 3. G Gmail YouTube Maps -11 POINTS SCALCET8 4.1.029. Find the critical numbers of the function. (Enter your answers as a comma-separated list. If an answer does not exist, enter DNE.) F(x) = 9 + 1x - * Submit Answer -/1 POINTS SCALCET8 4.1.030. Find the critical numbers of the function. (Enter your answers as a comma-separated list. If an answer does not exist, enter DNE.) P(X) = x++ 3x2 - 105X - /2 POINTS SCALCET8 4.1.048. Find the...

  • 26 and 28 please - USP 15646815/mi/520690307cf%24%2F2%5BP7000481665000000000000000002AB9%5D%2FB%5Bd6e45295%5D%25235 orm M Gmail : YouTube Maps My Library Brytew......

    26 and 28 please - USP 15646815/mi/520690307cf%24%2F2%5BP7000481665000000000000000002AB9%5D%2FB%5Bd6e45295%5D%25235 orm M Gmail : YouTube Maps My Library Brytew... Pearson Sign in Android Select Mol. w3 How To Add Ted Bl.... 26 Fill in the missing statements or expressions in the following code that checks to ensure that a user enters an integer value at the prompt: var purchase - par (prompt("How many do you want?","")); var check = 441 while purchase seint (prompt ("Enter a whole number:","")); 27 Fill in the missing...

  • € C !!! Apps e zto.mheducation.com/han.px M Gmail YouTube Maps Harrison Company makes two products and...

    € C !!! Apps e zto.mheducation.com/han.px M Gmail YouTube Maps Harrison Company makes two products and uses a conventional conting system in which a single plantwide, predetermined overhead rate is computed based on direct labour hours. Data for the two products for the upcoming year follow: Rincon $ 29 40 $ 20.00 Parcel $ 22.60 S 440 Direct materials cost per unit Direct labour couper unit Direct labour hours per unit Number of units produced 28,000 122.000 These products are...

  • Apps M Gmail YouTube Maps Q Economics Exam 12. BA-213-0-13360 - Managerial Accounting Homework: Chapter 07...

    Apps M Gmail YouTube Maps Q Economics Exam 12. BA-213-0-13360 - Managerial Accounting Homework: Chapter 07 Graded Ho...work Score: 0.86 of 5 pts 2 of 6 (6 complete) %E7-29A (similar to) The Arizona State Fair is one of the largest state fairs in the United States Click the icon for additional information about the fair.) * More Info Assume the following schedule of foes for food vendors at the Arizona State Fair Click the icon to view the schedule of...

  • Hi, this is an intro to C Programming Class. Please do not use arrays, functions, math.h,...

    Hi, this is an intro to C Programming Class. Please do not use arrays, functions, math.h, or struct to store any data except to declare strings char strVar[20]. Furthermore, can you please do a good check to make sure the final program does not have any problems because when I copy and paste them the app I use says there are some problems and it won't run the program. So if you can double check to make sure that everything...

  • PYTHON 3 - please show format Question 2. ) Use the Design Recipe to write a...

    PYTHON 3 - please show format Question 2. ) Use the Design Recipe to write a function yesOrNo which has no parameters. When called, it gets input from the user until the user types either 'yes' or 'no', at which point the function should return True if the user typed 'yes' and False if the user typed 'no'. Any other entries by the user are ignored and another value must be input. For example: Test Input Result print(yesOrNo()) hello blank...

  • Please help as it is very important task for me please write in Python code and...

    Please help as it is very important task for me please write in Python code and divide this into function and write comments for it 1. Ask the player’s name and welcome them to the game using their name. 2. Ask the player what is par for this game (number between 3-5 inclusive) 3. Ask the player what the distance to the hole for this game is (whole number between 195 and 250 inclusive) 4. Show the game menu: (I)nstructions...

  • please use python and provide run result, thank you! click on pic to make it bigger...

    please use python and provide run result, thank you! click on pic to make it bigger For this assignment you will have to investigate the use of the Python random library's random generator function, random.randrange(stop), randrange produces a random integer in the range of 0 to stop-1. You will need to import random at the top of your program. You can find this in the text or using the online resources given in the lectures A Slot Machine Simulation Understand...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT