write python program to find sum(using while/loop): sum= 1+ 2+ 4+8+ 16+ 32+....1024

Answers

Answer 1

Answer:

i = 0

total = 0

while i <= 10:

   total += pow(2, i)

   

   i += 1

print(total)

Explanation:

When you look the equation, you would realize that it is the sum of the numbers that are 2 to the power of i where 0 <= i <= 10

Set i and total as 0

Create a while loop that iterates while i is smaller than or equal to 10. Add the 2 to the power of i to the total (cumulative sum). Note that we use pow() method to calculate the power. At the end of the loop, increment the i by 1. Otherwise the loop will be an infinite loop.

When the loop is done, print the total


Related Questions

What is the difference between a function with parameters, and a function
without parameters? *

Answers

Answer:

A function with out parameters cannot take any arguments or perform operations on variables passed in. A function with parameters can.

Which steps will open the Access Options dialog box? Complete each statement using the drop-down menus
1. Click the
tab, and enter the
2. Click Options to open a new dialog box
3. Here, you can customize the ribbon, Quick Access Toolbar, and
among other features.

Answers

I believe it is Number 3

Answer:

1st blank: File

2nd blank: Backstage View

3rd blank: Language

Explanation:

edge 2020-21

How can I redo it again and my teachers are not responding plz tell me what to do for I can redo it again...and I already unsubmit it and it’s still graded..help.

Answers

Answer:

Maybe click on the test to see if there is like a redo button. Like a reset test. If not it might be locked and only your teacher can reset it for you.

If Gabrielle's message contained information that is only intended for the recipient, the message should be marked to discourage it from being shared?
private
normal
sensitive
delayed​

Answers

Private.

From the lack of information in the question, it can be assumed that the message arrived in a timely fashion.

As it is not said that the message is urgent, it is not sensitive to a reply.

Finally, there is a caveat to the message in that it is only intended for he recipient, therefore it is not a normal message.

This leaves one answer and one only: Private.

5 minutes speech on computer and it's impact​

Answers

Answer:

used for inter eliptics

Answer:

Computers have affected our lives in a great deal in that almost every thing now is either run by or made by computers. for instance in large industries, cars and space exploration devices and machines are designed by the use of the computers, in hospitals where medical billing, patients admittance and other medical are run and made by computers. there are also benefits of computer. but it also right it also impact our life.

Q.3- What are keywords?
A. These are names given to variables, constants, classes and
methods.
B. These are constants that hold a fixed value of any of the data types.
C. These are special symbols that perform specific operations,
D. These are reserved words that have special meaning in java
language​

Answers

Answer:

These are reserved words that have special meaning in java  language​

Explanation:

Literally, keywords are special words that have special meaning and purpose and can not be used from any other purpose aside from its predefined purpose.

In other words, they are reserved words.

Examples are: public, class, String, int, and many more

Hence, option (d) is correct

Identify the octal literal from the following:
a) True b) ‘True’ c) 0o345 d) 0o389

Answers

Answer:

c) 0o345 is the answers

How do u reverse image search on Android? ​

Answers

Answer:

go to the page the image is on

hold the picture -a menu will appear

tap Search

Can Tell me what is one advantage of online school​

Answers

Answer:

Accessibility Of Time And Place

Another advantage of online education is that it allows students to attend classes from any location of their choice. It also allows schools to reach out to a more extensive network of students, instead of being restricted by geographical boundaries.

Answer:

you can cheat

Explanation:

1. This are tools used to make any presentation interesting and exciting.
a. audio and video
c. hyperlinks
b. animations
d. text and graphics​

Answers

Answer:

c. hyperlinks

Explanation:

The correct option is - c.hyperlinks

Reason -

The "hyperlink" function in PowerPoint allows users to advance from one slide to another slide in the presentation when they click on a predetermined word, shape, or image, thereby allowing for a more dynamic and interactive experience than can be obtained with serial presentation of slides alone.

Can anyone help and write a sample answer to this please x

Answers

Answer:

I can give you some points -

Today people consider owning the latest smartphones and gadgets as a symbol of status. The demand for newer models of gadgets results in the production of more things we dont require. More and more waste is generated due to the rejection of older models of working gadgets. More demand for newer models can help in the advancment in technology and encourage manufavturers to produce better gadgets. But this increase in demand can badly affect our environments .

.i hope these points can help you.

Hello i should be write engilish but i from turkey and my brainly APS is engilish how can ı change this lengue haa​

Answers

Explanation:

there are buttons like q ans influence and me

go to me and tap settings

Answer:

you can translate it into English if u know how to do and if there is option for that.

Explanation:

does the colour intesity change of the liquid if you add more baking soda?​

Answers

Answer:

adding more baking soda to the water changes the intensity of the color blue. in this case, the liquid becomes a dimmer blue. this is because the pH scale is logarithmicmeaning that a difference in one unit of pH is 10 times the difference in concentration.

Explanation:

Hope this helped Mark BRAINLEST!!!!!

-FOR EXCEL AND WILL GIVE BRAINLIEST-

The numbers in our worksheet look like this: 1000
You want them to look like this: $1,000.00
How can you accomplish this?

A. Select Format>Money from the menu
B. Click currency style button on the formatting toolbar
C. You have to retype everything and manually add the dollar signs, commas, and decimals
D. None of the above

Answers

Answer:

I believe the answer is B. Click currency style button on the formatting toolbar

Explanation:

How many countries don't uses the metric system?​

Answers

Answer:

The USA, Liberia, and Burma (a.k.a. Myanmar)

Explanation:

These are the only 3 countries that don't use the metric system

3 countries don’t. At this time, only three countries—Burma, Liberia, and the US—have not adopted the International System of Units (SI, or metric system) as their official system of weights and measures."

Is the color grade of black or white higher?

Answers

Answer: When it comes time to color grade black and white footage, follow this one ... shooting black and white, high contrast almost always looks better.

Which statement best describes the alpha brain wave phase? (6
points)
O Awake, focused, and relaxed
O Groggy, sedated, and indifferent
Torn, scrambled, and flustered
O Anxious, uncomfortable, and worried
Helpppp plzzz

Answers

Answer:

O Awake, focused, and relaxed

Explanation:

Brain waves are electrical impulses of different wavelengths produced by the brain after the completion of an activity. Monitoring these waves with the aid of an electroencephalogram can provide insight into the state of the brain's activity.

The alpha brain wave has a wavelength of 8 - 12hz. It is usually experienced when a person is awake but not fully focused on anything in particular. The feeling is more of a relaxed and calm condition. The feeling experienced when a person just wakes from sleep aptly describes it.

1 )Write two ways to customize the
pictures in HTML document.​

Answers

Answer:

a)If anyone wants to append the picture on the website then he can do this with the help of <img> tag. ...

b)The CSS is used to set the border, color, height, and width of the elements of the HTML.e

what do you understand by local technology?

Answers

Answer:

It's basically people that assist to their activities in a daily life

Explanation:

Answer:

People that assist with each daily activities

Explanation:

pls help me with this pls

Answers

10  10  10  10  10  10  10  10  10  10  10  10  10  10  10  10  10  10  10  10  10  10  10  10  10  10  10  10  10  10  10  10  10  

The answer is 10
Hope this helps

Describe a way that you can envision using the power of the computer through


distributed computing to enhance the quality of your life.

Answers

Answer:

Explanation:

In a way, we can use cryptocurrency as an example. Most cryptocurrencies use distributed computing in a form of decentralization to create an economy/system of information where individuals can transfer money. This ultimately gives back power to the people and puts individual's money back in their own hands. Therefore, getting rid of the banks entirely. This is an enormous enhancement in quality of life and is only one of the many innovations that cryptocurrencies have created.

A way that you can envision using the power of the computer through distributed computing to enhance the quality of your life is through content creating/making.

What is content creation?

Content creation is known to be the act or method of finding out/ identifying a novel topic you want to write about and then deciding which way you want the content to take.

Here, one has to create different strategy in producing content.  Through content making, one can use the power of the computer via distributed computing to enhance the quality of your life.

Learn more about  content creating from

https://brainly.com/question/13171394

What were the important developments that occurred in photography that facilitated the creation of motion pictures? Two critical developments in photography that enabled the development of motion pictures were___and___​

Answers

Answer:

"A moving picture is an illusion that makes a still photo seem to move. The basic principal behind motion pictures is the fast transition between one picture to the next, almost creating a seamless transition. A flip-book is a good example of this. Another example would be film used for old movies. The film contains negatives of an image which when light is shined through creates a "shadow" of the image. If you quickly transition the film from one image to the next you end up a motion picture."

Explanation:

Ill give brainliest if possible

Answers

i can’t see that zoom it in

Answer:

it is C

Explanation:

it is C because it will check morning list and afternoon list to find the kid

a python program for the following output using for loop.

Output:


-13

-7

-1

Answers

Answer:

In Python

for i in range(-13,0,6):

   print(i)

Explanation:

Required: A program to display the given output

From the program, we observe the following:

The output begins at 13 i.e begin = 13

The output ends at -1 i.e end = 1

And the difference between each output is 6.

i.e. [tex]-1 - (-7) = -7 - (-13) = 6[/tex]

So, the syntax of the for loop is: (begin, end + 1, difference)

The program explanation goes thus:

This iterates through the -13 to 1 with a difference of 6

for i in range(-13,0,6):

This prints the required output

   print(i)

What type of computer/device do you have i need it for a survey and it due today soooooooooooooo

Answers

Answer:

ooh I have a I phone computer

help plz ;-;

which of the following terms means "storing a value in a variable"?

assignment
operator
variable
exponent​

Answers

Answer:

Assignment

Explanation:

Storing a value in a variable (memory location) is called assignment.

In programming, Assignment serves as storing a value in a variable.

variable serves as a container for a value. For instance, when performing addition, the number there is a variable

A variable is been considered with space in the computer's memory and this can help in holding a value.

Therefore, option A is correct.

Learn more at:https://brainly.com/question/23275071

Plz help me I need this doneee

Answers

answer: I think it’s true

Computer software consists of
A.) the peripheral equipment such as a scanner
B.)the physical parts of the computer such as the keyboard.
C.)the programs inside of a computer such as the d.)operating system and gaming.
a monitor and the CPU

Answers

The answer is C) the programs inside of a computer

Answer:

The programs inside of a computer

Which of the following is an example of a goal? *
10 points
Establish an online presence
Sell products or services to generate income
Present information on a topic
Increase sales by 10 percent by the end of the year

Answers

i would say d! sorry if im incorrect <3

What are the hardware and software components of a computer

Answers

Answer: See explanation

Explanation:

Computer hardware simply refers to the part of the computer that we can see and also touch. This includes the mouse, keyboard, monitor, central processing unit, monitor etc.

The computer software simply refers to the set of instructions which are used in the operation of the computer. It includes the application programs, operating system etc.

Other Questions
HELP QUICK!! solve by substitution and show work please Please help! original answers only please!How would your chromosomes compare to someone elses chromosomes? -Anu ang paningin sa akda ng paalam sa pagkabata? -anu ang mga teoryang pampanitikan at ang uri ng teorya? I need 2 examples -anu ang mga Tayutay mula sa akda at ang uri ng tayutay niya? I need 3 examples -anu ang mga salita/idyoma/matatalinghagang salita sa akda ng paalam sa pagkabata at ang kahulugan niya. I need 5 examples Thanks owo, it's for a test of mines Write an equation (division) with fractions that equals 6/8:) . Which revision corrects a misspelling in this sentence? The principal is making students chose between music and art classes.A. Change chose to choose.B. No change is needed. C. Change "classes" to "clases."D. Change "principal" to "principle." The WSJ lists a bond as Acme 9s13 and the price as 89.875. If your required rate of return is 10%, would you buy one of these bonds in 2001? 100POINTS! EXPLAIN YOUR ANSWER OR I REPORT write the number that is 6 less then 8000 1) (51 4 + 5n") + (3 + 3n" + 1")A) 8n+ 3B) 814 + 61 - 1C) 87+ + 3 + 1D) 81+ + 31 - 1 can someone help solve? will give brainliest The method by which the substances in a mixture are separated is called what? Find the equation of a line, in slope-intercept form of a line that passes through the point (-5, -1) and is parallel to -2x+4y=8. Write the nameOf the class that corresponds to each description I need help with problem 8 why is this mars landing a new era for space exploration Choose the best word in the drop-down menu to complete the sentences.Today, most historians consider the New Deal a (Choose...). The programs provided employment and lasting economic stability. However, the benefits were (Choose...) for minorities and some women. Use the coordinate plane to help you identify the length of each leg then use the Pythagorean Theorem to find the length of CD Which set of proteins assist in the process of adding amino acids one by one to the growing amino acid chain during translation? Word processing package allow users to?