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

Answer 1

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))

How To Create A Code In Pyton To Ask The User To Enter The Number Of Switches And Calculate The Possible

Related Questions

A programmer created a piece of software and wants to publish it using a Creative Commons license. Which of the following is a direct benefit of publishing the software with this type of license?

A

The programmer can ensure that the algorithms used in the software are free from bias.
B

The programmer can ensure that the source code for the software is backed up for archival purposes.

C

The programmer can include code that was written by other people in the software without needing to obtain permission.
D

The programmer can specify the ways that other people are legally allowed to use and distribute the software.

Answers

Answer:

The answer to this question is given below in the explanation section. However,  the correct answer is D.

Explanation:

This question is about publishing software under a creative commons license. The direct benefit of publishing the software under commons creative license is that the programmer can specify the ways that other people are legally allowed to use and distribute the software.

Because under this type of license, the publisher can publish their work under copyright law.  So they can control and specify the ways that how other people can use and distribute it legally.

While other options are not correct, because of its programmer responsibility that source code is free from error and bias, take backup for archival purposes. People can't include anything without obtaining permission etc.

The direct benefit of publishing the software with this type of license is option D.

The following information should be considered:

It is the programmer that represent the ways where the other people are permitted for using and allocating the software. Also under this license, the publisher could publish the work as per the copyright law.The source code should be free from error & bias, backup for archival purpose, without giving the permission represent the responsibility of the programmer.

Therefore we can conclude that the correct option is D.

Learn more: brainly.com/question/22701930

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. :)



6) Sometimes it is difficult to read a piece of code and understand what the code will do. For this reason, you may want to add notes to yourself (or to someone else that may read the code) that show up in the code, but not when you run the program. What are these notes called and what symbol do you use to write them

Answers

Answer:

The answer to this question is given below in the explanation section.

Explanation:

The notes that are used in a piece of code to understand the difficulty of coding or for others to read it is called comments.

Comments in code help in understanding the code, they help others to read the code and understand the logic written behind it. Comments also help the programmer to read his code himself for understanding purposes. Comments in coding used for understanding the purpose of code and what the code will do. The comments written in the program cannot execute or shown when you run the program.

Comments in coding/program can be used in two ways in almost all programming languages. You can use comments on a single line and in multiple lines.

To show a comment on a single line, you can use the double backslash "//" .

To make a comment on a single line. for example

//here the calculation start or some other understandable comments.

if the comments are more than one line then you can use "/*    */" symbols to write comments on multiple lines

for example:

/* this is the code

that calculate the sum and average of students grades

it also displays the grade in letter

*/

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

Which of the following statements are true regarding cognitive impairments? Select 3 options.
Speech input devices help those who are cognitively impaired understand the contents of the screen.
Delivering content in different ways, such as using video, animations, and text, helps promote cognitive accessibility.
To improve cognitive accessibility, the developer should focus on a clear and consistent design.
Even though there are different causes for cognitive impairment, many of the resulting functional issues are similar.
Cognitive issues are learning disabilities caused by genetic disorders.

Answers

Answer:

The correct options are;

Delivering content in different ways, such as using video, animations, and text, helps promote cognitive accessibility

To improve cognitive accessibility, the developer should focus on a clear and consistent design

Even though there are different causes for cognitive impairment, many of the resulting functional issues are similar

Explanation:

Cognitive impairment is the condition of a person having difficulty in concentrating, learning, recalling from memory, or making functional decisions. Depending on the severity, cognitive impairment may be classified as severe or mild

Symptoms includes, loss of memory, asking the same questions or telling the same story frequently, unable to recognize people they already know, or places they have already been to, having problems with vision and being unable to plan or see tasks through

Answer:

The correct options are;

Delivering content in different ways, such as using video, animations, and text, helps promote cognitive accessibility

To improve cognitive accessibility, the developer should focus on a clear and consistent design

Even though there are different causes for cognitive impairment, many of the resulting functional issues are similar

Explanation:

help !!!!!
Aziz is purchasing a new laptop. The salesperson asks him if he requires any software, as he will get a discount if purchased together. What is that “software” the salesperson is referring to?

• a type of insurance that covers light wear and tear to the laptop for a specified number of years

• a type of protective covering to prevent the laptop from damage in case of falls

• a detailed list of all the hardware connected to the laptop as well as hardware on the laptop

• a set of instructions that enables the laptop to perform certain functions or operations

Answers

I believe it’s D because software is the programs and other operations used by a computer

Answer:

its d

Explanation:

i just did it

i need help plz it keeps on happening and idk what to do


so right now im on my school computer and everytime i turn it on it shows this blue site and on the site it says something like anti-virus-protection. I dont need virus protection cause im on my school computer, then whenever i turn on chrome it closes the page i was on and then brings it bk on does anyone know what is happening or can help me//

Answers

I would probably try restarting/turning the computer off and on again first. If that doesn't work, you should probably contact a teacher to see if they can help you.

(and if you can't make it work, maybe try to see if you can use another computer)

Hope you can figure it out!

what aspect should you consider before adding pictures to documents

Answers

Answer:

make sure you have the correct picture

Explanation:

it might vary to what document your working on

I WILL MARK BRAINLIEST!!!!!1

Answers

Answer:

They make the keyboard work properly

Explanation:

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

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

How is computer programming useful in real life? Help me

Answers

It can help you with technology and can help you become a computer programmer if you like technology hope this works I’m sorry if it doesn’t

Zachary is writing an article that will be included in a Who is most likely Zachary's audience? pamphlet his school is putting together titled "Guide to Your School Library." Zachary's article will explain how to O students about to graduate from the school find information for a science project. O science teachers O parents visiting the school O students who are new to the school​

Answers

Answer:

Students who are new to the school.

Explanation:

right on edg2020

Passage:

Zachary is writing an article that will be included in a pamphlet his school is putting together titled "Guide to Your School Library.” Zachary’s article will explain how to find information for a science project.

Question:

Who is most likely Zachary’s audience?

Options:

students about to graduate from the school science teachers parents visiting the school students who are new to the school

Answer:

D.) students who are new to the school

Explanation:

This option is correct because when I did the assignment on Edge, I got it right!

What is the definition of a noob? Please help. Define it in your own words but in an appropriate way, thank you very much!

Answers

Answer:

A person that is different from others by the way they look, act, ect.

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

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

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.

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)

Shannon wants to work with renewable energy. She is researching what it would take to become a geochemist. A geochemist is someone who uses chemistry to study water and elements in it. What skill or ability well Shannon need to be the most effective in this position?

Answers

Answer:

Critical thinking

Explanation:

Shannon needs to be a Critical thinker to be effective in this position. Critical thinking has to do with giving deep and good thoughts while doing analysis, or assessment in other to come up with good judgements about a subject or topic.

Since she is going to be studying water and elements in it, she would be doing a lot of analysis and assessments and In other to do good in her field she must learn to think critically before arriving at her conclusions.

Answer:

Critical thinking

Explanation:

Shannon needs to be a Critical thinker to be effective in this position. Critical thinking has to do with giving deep and good thoughts while doing analysis, or assessment in other to come up with good judgements about a subject or topic.

Since she is going to be studying water and elements in it, she would be doing a lot of analysis and assessments and In other to do good in her field she must learn to think critically before arriving at her conclusions.

In double-entry accounting, where should you record money that is leaving your company to pay bills?
A. In the debits column
B. In the credits column
C. In the asset column
D In the cash flow column
Please select the best answer from the choices provided
A
B
С
D

Answers

Answer

I think the answer is cash flow

Explanation

Okay, so cash flow if my memory serves correctly, cash flow is the money that is coming in or when you go to pay something, cash asset is money that is in your wallet or in your bank account, cash credit is a temporary loan and I dont really kniw what a debita column is.

Answer:

Its actually

In the credits column

-

Or (B) On edg. E2021

Explanation:

<3

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.

I WILL GIVE BRAINLIEST TO WHO ANSWERS FIRST AND CORRECTLY.
All slides in a presentation must use the same transition.

True
False

Answers

Answer:

true

Explanation:

The answer is true good luck

what's my favorite color

black

red

purple

yellow

orange

Answers

Answer:

.

Explanation:

Nina is trying to learn more about how computers work. She has repeatedly read that the motherboard is the "brain” of the computer.

Nina has learned that the motherboard is considered the brain because it

stores all of the computer’s information.
enables the computer to function.
processes the data on the computer.
guides the computer’s activities.

Answers

[tex]\huge\boxed{Enables\;the\;computer\;to\;function.}[/tex]

The motherboard is the part in the computer that allows the computer to function correctly. Without it, none of the computer pieces could interact.

Nina has learned that the motherboard is considered the brain because it enables the computer to function, hence option B is correct.

What is the function of the motherboard?

The circuit board determines the kinds of storage devices, memory modules, and graphics cards (among other expansion cards) that can connect to your PC. It also distributes electricity from your power supply and links all of your hardware to your processor.

The motherboard of the computer contains the central processing unit (CPU), also known as a processor. It executes commands and is sometimes referred to as the computer's brain. You provide the CPU instructions every time you touch a key, click the mouse, or launch an application.

Therefore, the motherboard is considered the brain of the computer.

Learn more about motherboards, here:

https://brainly.com/question/29834097

#SPJ2

Why is computer called an information processing machine?

Answers

Answer:

A computer is an information processing machine. Computers process data to produce information. The sets of instructions that humans give computers are called programs or software. Computers never lose or misplace information.

hope this helped youuu:)

1What kind of rules protect everyone’s rights when we use each other’s content

2What are two example of intelectual property

Answers

Answer:

1. Copyright.

2. Songs and books.

Explanation:

A copyright law can be defined as a set of formal rules granted by a government to protect an intellectual property by giving the owner an exclusive right to use while preventing any unauthorized access, use or duplication by others.

For example, when an individual downloads a song owned by any record company without paying a purchase fee, it is a violation of copyright law.

A copyright can be defined as an exclusive legal right granted to the owner of a creative work (intellectual property) to perform, print, record, and publish his or her work. Also, the owner is granted the sole right to authorize any other person to use the creative work.

Hence, copyright is a kind of rules that protect everyone’s rights when we use each other’s content.

An intellectual property can be defined as an intangible creation of the human mind, ideas, thoughts or intelligence. Some examples of an intellectual property are songs, books, poems, technology, design etc.

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:

what are four basic properties of waves?

Answers

Answer:

Amplitude, Wavelength, Frequency, and Speed.

Explanation:

Amplitude: The maximum displacement of the wave from the centerline (undisturbed position).

Wavelength: The distance from one crest (outer egde of wave) to crest.

Frequency: The number of crests that pass a single point over a unit of time.

Speed: How far the wave travels in a unit of time.

The basic properties of waves are: Amplitude, Wavelength, Frequency

and Speed.

Four basic properties of waves are:

1. Amplitude: The amplitude of a wave is the maximum displacement or distance that a particle in the medium (or the wave itself) moves from its rest position when the wave passes through.

2. Wavelength: The wavelength of a wave is the distance between two consecutive points that are in phase, such as two crests or two troughs. It is measured from one point in the wave to the corresponding point in the next wave.

3. Frequency: The frequency of a wave is the number of wave cycles (complete oscillations) that pass through a specific point in one second. It is measured in Hertz (Hz).

4. Speed: The speed of a wave is the rate at which the wave travels through the medium. It is the distance that a wave travels in a given amount of time.

Learn more about Waves here:

https://brainly.com/question/3381679

#SPJ6

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.

I WILL GIVE BRAINLIEST TO WHO ANSWERS FIRST AND CORRECTLY.
select all that apply
What guidelines should you follow when adding graphics to your presentations?

They should be used to make a bad presentation better.
Graphics should appear on each slide.
Graphics should only be used when they improve the communication.
Their size should be appropriate for viewing by your audience.
They should be relevant and appropriate to the content.

Answers

Answer:

the third and the last one

Other Questions
Which phrase best describes igneous rocks?form when lava and magma coolaccumulate sediments following erosionrequire heat and pressure to be formedconsist of many sediment layersctivity Summarize the process of sexual reproduction and explain how variations of inherited traits can increase or decrease an organisms chance of survival Match the famous personalities to their contributions during the Counter-Reformation. Ignatius Loyola Pope Paul III Heinrich Kramer and Jacob Sprenger Pope Paul IV founded the Society of Jesus arrowRight published the Index Librorum Prohibitorum arrowRight published Malleus Maleficarum arrowRight established the Roman Inquisition arrowRight Reset Next If it _______________ (work) normally, you can be confident that nothing else is wrong with it. Jeffrey thinks that the largest place value that 8.21 and 19.5 have in common is the tens place Austin thinks that the largest place value they have in common is the ones place Divide n by 5 then add 6 What part of the dermis cushions the body from stress and strain?O Blood vesselsSebaceous glandsO CollagenO Sudoriferous glands I need help pls help me!! Find the measure of angle b when 3+3x-5-8x is simplified, the result is? Why did most people support the changes proposed by the National Assembly in France? 2/5(10x+25)Simplify Brainly To make 5 dinner rolls, 1 third cup of flour is used.How much flour is needed to make one dinner roll? someone helpp I need to find the missing angles of this triangle help me I will give brainiest Last one lol. Could I have an explanation so I can understand and ty! Why should we be concerned about the disappearance of phytoplankton in the oceans how do I factor polynomials What is one way to add oxygen to the atmosphere? Solving each proportions 10/8=n/10