X = 0
end = int(input("Pick a number: "))
for num in range(1, end, 2):
#missing line
print(x)
X 10.
This program should print the sum of all the ODD numbers between 1 and the user's number pick the "end" variable)
Write the missing line that will make that possible.
I think its print(1 + end) but If its wrong can I please have feedback cause I'm struggling with this 1.

Answers

Answer 1

The missing line would be x+= num

This means that every time a number is selected from the range it is added to the value of x.


Related Questions

4.5 Code Practice


Write a loop that inputs words until the user enters STOP. After each input, the program should number each entry and print in this format:

#1: You entered _____
When STOP is entered, the total number of words entered should be printed in this format:

All done. __ words entered.

Sample Run
Please enter the next word: cat
#1: You entered cat
Please enter the next word: iguana
#2: You entered iguana
Please enter the next word: zebra
#3: You entered zebra
Please enter the next word: dolphin
#4: You entered dolphin
Please enter the next word: STOP
All done. 4 words entered.

Answers

In python 3:

i = 0

while True:

   word = input("Please enter the next word: ")

   if word == "STOP":

       break

   i += 1

   print("#{}: You entered {}".format(i, word))

print("All done. {} word(s) entered.".format(i))

I hope this helps!

The program is an illustration of loops.

Loops are used to perform repetitive operations.

The program in Python, where comments are used to explain each line is as follows:

#This gets input for the first word

word = input("Please enter the next word: ")

#This initializes count to 0

count = 0

#The following iteration is repeated until the user enters "STOP"

while word != "STOP":

   #This prints the word entered

   print("You entered",word)

   #This increments count by 1

   count += 1

   #This gets input for the next words

   word = input("Please enter the next word: ")

   

   

#This prints the count of all words

print("All",count,"words entered!")

At the end of the program, the number of valid inputs is printed.

Read more about similar programs at:

https://brainly.com/question/18283451

What is the special set of characters that indicates the start and end of an HTML element and that element's type?

Answers

the answer is HTML Tag

The HTML tag ..........

Hello, need help with coding, I'll give brainliest if you can get this right, thank you!
What will be the output of the following program? Assume the user responds with a 5.

answer = input ("How many hamburgers would you like? ")
priceBurger = 3.00
intNumberBurgers = float(answer)
moneyDue = intNumberBurgers * priceBurger
print ("You owe $", moneyDue)

You owe $ moneyDue

An error occurs.

You owe $15.0

You owe $ 15.0

Answers

The output will be:

You owe $ 15.0

What is Hypertext Transfer Protocol?

Answers

Answer:

an application layer protocol for distributed, collaborative, hypermedia information systems.

Explanation:

what do you call the two parts of lift that go down a mine

Answers

The sheave wheel is a pulley wheel that sits above the mine shaft. The hoist cable passes over the sheave wheel and then down the shaft of the mine.
(copied from google)

Which of the following is not expected of employees’ oral communication skills in the workspace

Answers

Answer:

Yes, choose C since it's not an oral requirement, but a written one.

The oral communication skills in the workspace should not involve writing.

The information regarding oral communication skills is as follows:

Active listener.Clarification.Asking open-ended questions.In this, the communication could be done in a clear way.The appropriate language should be used.Also, the laws & regulations should be communicated.

Therefore we can conclude that the oral communication skills in the workspace should not involve writing.

Learn more about the communication here: brainly.com/question/12349431

Create a summary of no less than 125 words of a show that would NOT go over well with television producers because it is targeted to people in the least desirable groups. Include the title of the show, the main characters, and a description of the show's premise. Explain why this show would NOT go over well with television producers.

Answers

Answer:

Follows are the solution to this question:

Explanation:

Its Mid is also an American drama about a Kentucky-based middle-class family who've been struggling to live in an impoverished house, home and earn children on even a daily basis. Mike and Frankie, both live in Orson, Indiana, were mid-aging adults. Users got three kids named Axl, Sue, and Brick. Michael was its owner of a local quarry as well as Frankie, the seller of a motorcycle. It was great for Scriptwriters since it is related to America's many households, a middle and upper-class family. Despicable is an American dramedy about an impoverished and unstable Chicago family.

It among participants is Frank, Gallagher's dad, but Fiona, their household's oldest son, as she actual mom Monica goes up and down as she likes. The other five children of Gallagher are Lips, Yan, Debbie, Lori, and Liam.

Frank is an alcoholic, but Fiona works very hard and provides for her sisters and brothers. It is not used for scriptwriters, because it is related to the poor and victims of abuse of drugs, which aren't considered "wanted." Since that concerns an "unwanted" listeners, its show was indeed a success.

Complete the sentence.
use only apps acquired from app stores.
PLEASE HELP

Answers

Answer:

that's a hard one maybe u should email ur teacher bc the punctuation on that is fine and it's not an incomplete sentence

Ccccccccccccccccccccccc

Which selling method is most likely to irritate potential customers? A. Running a trade fair booth B. Cold calling C. Running a flea market booth D. Telemarketing to people who are interested in the product. ​

Answers

Answer:

B

Explanation:

Answer:    B.   Cold Calling

Explanation:

In business, cold calling means to contact people who haven't actually proved to be interested in their products/services. A salesperson may try cold calling to try and convince the person to be. This may be irritating to potential customers because instead of finding it out for themselves, the salesperson is shoving information down their throats.

I hope this helped!

Good luck <3

Sending or receiving information between two
more person
.technical term​

Answers

Two-Way Communication

guys my (R) key just bwoke and I have to copy and paste it every time I want to use it so now I'm talking in this nasty UwU voice... like the wide is every long and wuff like I can't evennnnn ahAHHAHAAAHAhahaHHAHh help please I don't know what to dooooooo like I can't even spell my own name like who am I now audwee

Answers

Answer:

Copy (Ctrl+c) Paste (Ctrl+v) Cant you click the rubber thing under the key you broke hoped i helped

Explanation:

Answer: then use a new keyboard or suffer with the UwU WHatS tHiS

Explanation:

In Word, tables can be styled much like text can.
True
False

Answers

Answer:

True

Explanation:

There are many formatting options from color, size, and many more.

Hope this helps!

Which of the following are examples of formal education? Check all of the boxes that apply. attending a college course at an accredited college attending a continuing education course reading a nonfiction book following a blog of an expert in the field​

Answers

the answers are:

- attending a college course at an accredited college

- attending a continuing education course

Examples of formal education will be attending a college course at an accredited college and attending a continuing education course.

What is formal education?

Formal education is the organized educational concept that integrates specialized training for occupational, academic, and formal development and goes from elementary (and in some countries, from nursery) school through university.

Features of formal education are given below.

The organization of formal schooling is pyramidal.It is purposeful and well-planned.Planned fees are consistently paid.Its grading scale is based on time.It is curriculum-driven and subject-focused. The syllabus has to be covered within a specific time period.The professors instruct the youngster.

Studying a degree course at an approved university or taking an ongoing education course are forms of formal education.

More about the formal education link is given below.

https://brainly.com/question/16642972

#SPJ2

A company gives you a document to review. This document lays out the strengths and weaknesses of a proposed business venture. It also evaluates the venture's potential for success. Which option best describes this document you are reviewing?

Feasibility analysis
Project prototype
System model
Requirements document

Answers

Answer:

The answer to this question is given below in the explanation section. However, the correct option for this question is Feasibility analysis.

Explanation:

The correct option for this question is feasibility analysis. Because in a feasibility analysis document, you can specify the weakness, strength, strategy, and plan for a specific business venture. This document also represents the validation and evaluation of the business venture that you are going to start or proposed. Basically, a feasibility document represents a feasibility study of the practicality of a proposed project or system.

Other options are not correct because:

A project prototype is a tool that can be used to get early feedback from customers/clients on what you are going to be developing. The system model represents the model or abstraction of the system while the requirement document is used to communicate the aims of a project/program/product or service in a clear, concise way to ensure all stakeholders are on the same page.

What is the quickest way to remove all filters that have been applied to a worksheet?

Answers

Answer:

Click the Filter button in the Sort & Filter group.

Explanation:

Quizlet

Go to the filter option, click sort/filter and unfilter.

my school blocked a lot of gaming websites.. do you have any good games that are unblocked???

Answers

Answer:

Well, it depends some systems are more strict... Krunker wasn't blocked now it is for a different district. But, the Google Doodle games are never blocked. Try the Ghost Game 2016 from Google... Or the Snake Game, or Pac Man. There are a few others like Solitaire. Browse the Google Doodles.

Hope this helps!

Answer:

cliker heros and cool math games are some

Explanation:

After the results of an experiment, a scientist decides that a long-held scientific theory must be revised. The scientist modifies the theory and tells other scientists. Predict the scientists' reaction, and explain why they might react that way. Your answer:

Answers

Answer:

Other scientists will be surprised at him/her

Explanation:

Science is totally empirical in its approach to knowledge. Models and theories are proposed and revised based on the available mass of experimental evidence.

However, all scientific findings must go through a rigorous process of verification and replication by other scientists in other parts of the world before they become  widely accepted in the world of science.

The scientist ought not to have modified the existing theory based on his findings as an individual. His findings ought to go through rigorous verification because other extraneous factors that he may not have controlled adequately may have led to the results he obtained.

Other scientists will be surprised and disregard his claims about the long held scientific theory until his findings are satisfactorily verified by other scientists working in different parts of the world.

the hardware device that allows the user to see the results after processing is the monitor,scanner,webcam,Camara​

Answers

Answer:hey

Explanation:

A device is one that is an external device and includes Printer, monitor, keyboard, and scanner. The input device includes the mouse and other point devices.

The camera is also an input device, a web-cam is a external device. The external device that lets the user see the output or the result on the screen is monitor.

Hence the option A is correct.

Learn more about the device that allows the user to see the results.

brainly.com/question/25756373.

stniop eerf lol guess what it says

Answers

Answer:

boop free points lolololol

Explanation:

Browsers render web pages according to their own standards.
True or false?

Answers

Answer:

false

Explanation:

it is used to view web pages thant you or somebody else created there are websites our there that you can do that but its mainly to view them

Answer: False

Explanation:

how to create a code in pyton to ask the user to enter the number of switches and calculate the possible outcomes that can come from those many numbers of switches(on/off). Please help me with this​

Answers

amount = int(input("How many switches? "))

if amount == 0:

   print("There are no outcomes for 0 switches")

else:

   print("With {} switch(es), there are {} outcomes.".format(amount, 2**amount))

hey yall i need help with email plz explain to me what happened

Answers

Answer: Oh looks like they disabled it :/ you should wait a little while so they can fix it I’m guessing

Explanation:

Answer:

Hi, I can try to help you.

I am on the software development club of my high school, and I also attended a summer camp at Google's headquarters. The steps below are written by me.

Explanation:

I have lots of experience with computers and Google. Generally, this problem usually happens when there's too much happening with your google account. This could happen from too many devices being logged into your account, or from sending/receiving a very large amount of messages. One common thing that happens is that there can be too many cookies and your computer cache may become full.

I recommend taking these steps:

1. Make sure you're not logged into your account on too many devices. If you are, for example, logged into the account on an iPad, iPhone, Macbook air, and a Mac, then you need to log out of the account on the devices you're not using at the time.

2. Clear your browsing history and cache. On a Macbook, just go to the top bar and click "History." Then, click "Show Full History" and then click "Clear Browing Data and Cache." This can resolve the issue.

3. If the issue is not resolved, restart your computer. This helps by rebooting your computer, and often you just need to restart it to resolve the issue.

4. If that hasn't worked, then I recommend that you wait. Generally, Google will unfreeze your account in a couple hours or so. If the above steps don't work, I recommend just waiting it out.

I hope this helps! If you feel this helped, feel free to give me Brainliest. :)

What is the purpose of a computer toolbar?

A. To alphabetize programs
B. To hold frequently used icons
C. To organize files
D. To view all files in the computer

Answers

Answer:

B

Explanation:

In computer interface design, a toolbar (originally known as ribbon) is a graphical control element on which on-screen buttons, icons, menus, or other input or output elements are placed. Toolbars are seen in many types of software such as office suites, graphics editors and web browsers.

The purpose of a computer toolbar is to hold frequently used icons. The correct option is B.

What is toolbar?

A Toolbar is a group of buttons or icons which are the integral part of the window or any software program's interface. Toolbar of the software program's interface has all commands under the menu bar.

In the computer interface, a toolbar has on-screen buttons, icons, menus. Toolbars are available in office suites, graphics editors and web browsers.

Thus, the purpose of a computer toolbar is to hold frequently used icons. The correct option is B.

Learn more about toolbar.

https://brainly.com/question/11496721

#SPJ2

Dave is a website administrator and manages several websites and a couple of blogs. One of his primary concerns is secure data transfer. Which telecommunication component can help Dave and other users to encrypt data?

Answers

Answer: C:Control Software

Explanation: The test said so

What will be the output of the following program? Assume the user responds with a 3.

answer = input ("How many shirts would you like? ")
priceShirt = 4.00
intNumberShirt = float(answer)
moneyDue = intNumberShirt * priceShirt
print ("You owe $" + str(moneyDue))

You owe $ 12.0

An error occurs.

You owe $12.0

You owe $ moneyDue

Answers

If the user responds with 3, the output will be:

You owe $12.0

Answer:

You owe $12.0

Explanation:

I WILL GIVE BRAINLIEST TO WHO ANSWERS FIRST AND CORRECTLY.
select all that apply
Select the strategies below that are likely to increase audience attention.

Match special effects to content.
Use lots of different animation styles on each slide.
Use consistent transitions.
Use similar animation styles on each slide.
Avoid the use of animations.
Vary the use of transitions for each slide.

Answers

Answer:

All except the last one I hope

Explanation:

Write any four "Change Case" options available in OpenOffice writter

Answers

Answer:

please mark me as a brainliest

Answer:

In OpenOffice Writer you can change any text to sentence case, lowercase, uppercase, capitalize every word, or toggle case by following the steps below.

Highlight the text you want to change.

Once highlighted click Format and then Change Case.

Within Change Case select the type of capitalization you want.

4. How could you apply some of the ideas, principles, or structures of coding to fields of study, industries, or tasks outside of creating computer programs? Propose at least one way to use "coding" or creating programs outside of computer science and explain how it uses coding-related concepts.

Answers

Answer:

a production plant

Explanation:

"Coding" brings with it a linear way of thinking and problem solving, where one step needs to be taken before moving on to the next step. This can be applied to a wide range of real-life scenarios and industries. For example, a production plant starts with an initial input, that input is taken and used in a set of instructions (method), those instructions take that input and create a new output. Once the new output is created it is then passed on to another set of instructions that takes that output as an input to create a new output. Just like a computer program, a power plant repeats this process in order to a fully working and realized product.

Edhesive 1.7 Data Types and Variables.
How do I do this correctly

Noun= input (“Enter a noun”)
adjective = input(“Enter an adjective:”)
Print (“the” +noun “is” + adjective)

Answers

Here's how I would do it in python 3+

noun = input("Enter a noun: ")

adjective = input("Enter an adjective: ")

print(f"The {noun} is {adjective}")

I hope this helps!

Within a major students can choose to study a specific area within major. For example a journalism student may study military journalism or business journalism the specific area is called

Answers

Answer:

Specialization

Hope this helps!

Answer:

Specialization

Explanation:

Other Questions
#2 please it will mean so much if you help What is the value of the 4 in the number 546210?Give your answer in words Help Please I have a few minutes left :/ Using the rules of multiplying and dividing integers, identify when an answer will be negative. (Select all that apply)positive negativenegative positivepositive x negativenegative x negativenegative x positivenegative negativepositive positivepositive x positive equivalent fraction using the lcd 7/10 and 5/6 NEED ANSWE LIKE NOW PLZZZ HELP WILL MARK BRAINLIEST Which reason best explains why carbon is able to form macromolecules?Carbon is a very large element.Carbon can bond with many elements.Carbon is found in all living things.Carbon is found in energy-storing molecules. Which type of wave vibrates from side to side and up and down?A. P waves B. S wavesC. Surface wavesD. Focus waves describe the journey of Joliet and Marquette Help please!!!!! I'll give brainliest! Amelia practices the piano 980 minutes in 4 weeks. At what rate did she practice, in minutes per day? A school district needs to arrange transportation for at least 360 students for a field trip. The district can use large buses or small buses. The large buses hold 60 students each and have an operating expense of $300 for the day. The small buses hold 45 students each and have an operating expense of $200 for the day. The district only has chaperones for, at most, seven buses. What is the minimum cost for the transportation for the field trip if each bus has chaperones? $1,400 $1,600 $1,700 $1,800 why was Mesopotamia an ideal place for a civillization to develop? Which is the factored form ofx2 - 5x 14 Besides plants and insects, what else would the student need in the ecosystem? Why? Can someone please help me with this question? It's so tricky pair that describes which angle pairs are congruent? Select all that apply Which of the following is considered a drawback of using electronic health records?A. Difficult of sharing recordsB. Costs of software and trainingC. Loss of patientsD. Cost of physical storage space PLEASE HELP ILL EVEN GIVE BRAINLLEST!!!But, in a larger sense, we can not dedicate-we can not consecrate-we can not hallow-this ground. The brave men, living and dead, who struggled here, have consecrated it, far above our poor power to add or detract. The world will little note, nor long remember what we say here, but it can never forget what they did here.Who does Lincoln appeal to in order to win the audiences sympathy?slaves in the southsoldiers who fought and died therehimselfchildren whose fathers were killed at Gettysburg Read this excerpt from Through the Looking-Glass by Lewis Carroll.This sounded nonsense to Alice, so she said nothing, but set off at once towards the Red Queen. To her surprise, she lost sight of her in a moment, and found herself walking in at the front-door again.A little provoked, she drew back, and after looking everywhere for the queen (whom she spied out at last, a long way off), she thought she would try the plan, this time, of walking in the opposite direction.It succeeded beautifully. She had not been walking a minute before she found herself face to face with the Red Queen, and full in sight of the hill she had been so long aiming at.Why does Alice need to walk in the opposite direction to get to the Red Queen?because the Red Queen has moved to another locationbecause Alice is initially walking in the wrong directionbecause the house has changed the location of its windows and doorsbecause in this land the opposite way of doing things is often the correct way 1. The Battle of Saratoga marked a turning point in the Revolutionary War because its outcome -A. inspired the British to fight harderA. , inspired the British to fight harderB. influenced France to lend support to the AmericansB. influenced France to lend support to the AmericansC. caused Britain and France to form an allianceC. caused Britain and France to form an allianceD. caused General Cornwallis to surrenderD. , caused General Cornwallis to surrender1. The Battle of Saratoga marked a turning point in the Revolutionary War because its outcome -A. inspired the British to fight harderB. influenced France to lend support to the AmericansC. caused Britain and France to form an allianceD. caused General Cornwallis to surrender