4.2 Code Practice: Question 1
Help

4.2 Code Practice: Question 1Help

Answers

Answer 1

total = 0

nums = 0

while total <= 100:

   num = int(input("Enter a number: "))

   nums += 1

   total += num

print("Sum: {}".format(total))

print("Numbers Entered: {}".format(nums))

I hope this helps!


Related Questions

which of these are correctly formatted python lists? check all that apply
Options
-list1=(race, cars, trucks, bikes)
-list2=["computer science', 'math', 'psychology']
-list3=('summer', 'winter', 'spring')
-list5[52, 24, 71, 56]​

Answers

The first and third option are actually tuples, not lists. Tuples and lists are identical except for the fact that you cannot change the elements in a tuple but you can in a list. The last option is incorrect because there is no equal sign that assigns those numbers to the variable name list5.

The only option that makes sense is option 2, list2

Answer:

B, C, and E :)

Explanation:

1. Write a query in SQL to list the following information of the artists in movie industry. Limit this information to only 5 artists. Sort the information by age descending order. Full name : first name and last name separated by space Age: Current age Address: State that he resides Contact number: Phone number

Answers

Answer:

1) SQL Server

SELECT  Top 5 concate(first name,' ',last name) AS Full name, Current age AS Age, state AS Address, Phone number AS Contact number from actor ORDERBY Current age DSC ;

2) MySQL

SELECT  concate(first name,' ',last name) AS Full name, Current age AS Age, state AS Address, Phone number AS Contact number from actor ORDERBY Current age DSC limit 5;

Explanation:

There two queries first having syntax works fine in SQL server and later with MySQL. All bold faced words are sql keywords. I assumed the tablename is actor as table name is not given if table name is any other replace actor with that name.

Font size means the height of characters.
True
False​

Answers

True..................

Answer:

Hey dude....

Explanation:

This is ur answer....

True

Hope it helps!

Brainliest pls!

Follow me! :)

Other Questions
Please help me figure out what the slop-intercept form is. Also, what is the solution to the system? 0.47 as a percent 6th grade Describe 1 way process or system that transfers heat by convection. Be specific in details HOW FAST CAN YOU ANSWER Explain the roles of reactants and products in a chemical reaction. Identify thereactants and products for this reaction. what is the greatest common factor of 6 and 8 please help! 50 points.Divide 6.410251.6109 1) Group the numerical factors together. 2) Simplify powers of 10 (exponent properties) Who were better in civilization the English or the Vikings? Explain your answer in a paragraph. Will give brainliest if explained with thought Which of the following is believed to have brought an end to the Anasazi culture?1) The severe drought between 1270 and 13002) Conquered by the Spanish Conquistadores3) A devastating flood4) A civil war between neighboring tribes If LN = 6x - 5, LM = x + 7, and MN = 3x + 20, find MN If u understand this May u please help me please Ill give brainliest :)! Last month, the online price of a powered ride-on car was $250. This month, the online price is $330. What is the percent of increase in the price of the car? Round the percent to the neartst tenth if necessary. A motel rents double rooms at $34 per day and single rooms at $27 per day. If 26 rooms were rented one day for a total of $807, how many rooms of each kind were rented? system of equations Circle the function types that have an absolute maximum or minimum. Choose all that apply.linear functions constant functionsquadratic functionsexponential functionslinear absolute value functions Devansh buys a house for $189,900. The tax rate is 7.5%. How much was the tax on the home? Read the following excerpt from The Gift of the Magi and answer the question.For there lay The Combs--the set of combs, side and back, that Della had worshipped long in a Broadway window. Beautiful combs, pure tortoise shell, with jewelled rims--just the shade to wear in the beautiful vanished hair. They were expensive combs, she knew, and her heart had simply craved and yearned over them without the least hope of possession. And now, they were hers, but the tresses that should have adorned the coveted adornments were gone.But she hugged them to her bosom, and at length she was able to look up with dim eyes and a smile and say: "My hair grows so fast, Jim! And them Della leaped up like a little singed cat and cried, "Oh, oh!" Jim had not yet seen his beautiful present. She held it out to him eagerly upon her open palm. The dull precious metal seemed to flash with a reflection of her bright and ardent spirit."Isn't it a dandy, Jim? I hunted all over town to find it. You'll have to look at the time a hundred times a day now. Give me your watch. I want to see how it looks on it."Instead of obeying, Jim tumbled down on the couch and put his hands under the back of his head and smiled."Della," said he, "let's put our Christmas presents away and keep 'em a while. They're too nice to use just at present. I sold the watch to get the money to buy your combs. And now suppose you put the chops on."The magi, as you know, were wise men--wonderfully wise men--who brought gifts to the Babe in the manger. They invented the art of giving Christmas presents. Being wise, their gifts were no doubt wise ones, possibly bearing the privilege of exchange in case of duplication. And here I have lamely related to you the uneventful chronicle of two foolish children in a flat who most unwisely sacrificed for each other the greatest treasures of their house. But in a last word to the wise of these days let it be said that of all who give gifts these two were the wisest. O all who give and receive gifts, such as they are wisest. Everywhere they are wisest. They are the magi.Which words in the passage above does the author use to suggest the theme of the story?lamely and uneventfulmanger and flatgive and receivesacrificed and giving Plz plz help Solve for x - Remember to multiply both sides by the reciprocal 2/3 x = 12 * If one (1) tablespoon equals three (3) teaspoons, how many tablespoons are in 13 teaspoons?a.2 2/3 tablespoonsb.4 1/2 tablespoonsc.3 1/3 tablespoonsd.4 1/3 tablespoons what do poets use to appeal to the five senses of the reader?