python exercise c2 q4
Sam wants to write a code that will produce the following:
000
001
010
011
100
101
110
111

He doesn’t know where to start so he starts with the basic:
00
01
10
11

However, he also has trouble finishing this code. He only has a basic idea. Help him to complete the basic version first:

for i in range (0, 2):
for j in range (0, ): (1 mark)
print( i , ) (1 mark)



Now that you know the basic, complete the code that will print the chart 000, 001….all the way to 111 (Hint: look at the code you just complete. This time you probability need 3 for loops, one within another)

for i in range (0, 2):
for j in range ( , ): (2 mark)
for k in range ( , ): (2 marks)
print( , , k ) (1 mark)

Answers

Answer 1

Answer:

for i in range (0, 2):

 for j in range (0, 2):

   print(i , j)

and

for i in range (0, 2):

 for j in range (0, 2):

     for k in range (0, 2):

       print(i , j, k)

Explanation:

The nicer method of doing this would be:

for i in range (0, 8):

 print("{0:03b}".format(i))


Related Questions

Please help I’m not trying to fail

Answers

Answer:

a

Explanation:

i think a pressure clamps

How many times would the for loop below execute if variable times = 9 % 2?

for (int x=times; x <=times; x++) ?

1
0
2
3

Answers

Answer:

1

Explanation:

9 % 2 = 1

So x = 1

It will execute once

Find the quotient. 2.5 ÷ 5

Answers

Answer:

.5

Explanation:

you just divide 2.5 by 5

2.5 divided by 5 = 0.5

Word processing software is used primarily by schools rather than businesses.
True or false

Answers

Answer:

False.

Explanation:

Microsoft Word refers to a word processing software application or program developed by Microsoft Inc. to enable its users type, format and save text-based documents.

Generally, the Microsoft Word software is used by various businesses for processing and formatting text-based documents.

In Microsoft Word, formatting refers to the appearance of texts in a document.

Formatting a text involves performing tasks such as, bold, underline, italics, font-size, font-types, color etc. The commands to perform the above tasks are mainly found in the format menu of the Home tab.

Formatting a document is important and necessary because it makes the word document clear and easy to read.

Hence, Word processing software such as Microsoft Word, Notepad, etc., is used primarily by businesses rather than schools because most businesses deal with the creation and transfer of documents from one department to another or to other businesses.

This ultimately implies that, business firms or organizations are more inclined to use Word processing software to create paper documents for the day-to-day business activities they conduct unlike a school who rarely does.

Example of Not a computer characteristics example

Answers

Answer:

A book

A non electronic

Explanation:

What actions can you take to ensure the physical security of network devices?

Answers

Answer:

Here are some steps you can take to make sure your network is secure:

Take physical precautions. ...

Make sure all of your server's security features are enabled. ...

Use both hardware and software firewalls. ...

Install the latest version of your server's software. ...

Guard passwords. ...

Be Wi-Fi savvy.

Explanation:

PLEASE MARK ME AS BRAINLIEST

As you are designing a site for a client, you notice that the bulleted lists do not appear when a blog is published. You look in the code and see you have used the proper < li > tag. What else needs to be in the code?


notli

/li

unli

-li

Answers

Answer:

B

Explanation:

Why is it important for an app developer to work closely with the client and end users to understand what their users want and need?

Answers

if the app developer doesn't meet the clients needs within the app the client may be dissatisfied, and not use the app. The client could also spread the word that this app developer dosen't listen to their customers and this could jeopardize future clients wanting to work with the app developer.

Help please not trying to fail

Answers

Answer:

B. Everywhere CFCI is not

PLS HELP ILL GIVE BRAINLY- (enter the answer) Microsoft _________ is an example of a desktop publishing software

Answers

Answer:

word fffffffffffffffffffffff

Excel should be correct
Sorry if wrong

A vending machine that serves coffee pours a varying

Answers

is that the whole question? or

Read through the following scenario, and then decide which computer is the best fit.

Answers

Answer:

gaming pc?

Explanation:

i dont know why you have this question kinda weird but entertainment pc or gaming pc sounds right

Answer:

B. Gaming or media production computer

Explanation:

Gaming or media production computer is the best computer you'll need because if you don't have the best computer it probably won't work on you. But if you the gaming or media production computer it will work on you.

I hope this helps.<3

Have a nice day.<3

help ......... pleaseeeee

Answers

Answer:

Follows are the solution to this question:

Explanation:

Transport layer:

In the OSI model, this layer lies on the 4th part, which primary function is to directly supply the network connectivity to applications mostly on various hosts.

It provides end-to-end communication over a network and also allows you to send and receive error-free data in the form of data packets that enhanced your privacy.

Flow control and Error control:

The flow control is only used to send or receive information transmission only, while Error control is used designed for error-free communication for both (sender or receiver).

Layer related to the data link layer:

It must be done at different layers on both layers like node-to-node connections, the communicative needs are controlled by flow and error. Flow and error control in the transport layer is done from endpoint to endpoint.

You are 18 years old and need to write an email for the first time to a woman in her 40s( you can tell her age based on when she graduated college via he LinkedIn profile). How do you address her in the email? A. (First name) B. Hi(First name), C. Hi Ms.(Last name), D. Hi Mrs.(Last name) E. None of the above

Answers

E. None of the above

Its not formal to address someone with their first name, but it is also not right to assume if the woman is married or not.

In what ways can you sort data by using the sort procedure? Check all that apply.
sort ascending

sort descending

sort diagonal

sort by font color

sort by background color

sort by rows

sort by columns

Answers

Answer:

all except c:)

Explanation:

Answer:

1,2,4,5,6,7

Explanation:

all except C

The variable myFirstName needs to store a user's first name. What data type should it be
initiated as?

Answers

Answer:

In terms of the data type it would most likely be a String and not a Boolean and or a Number.

what is targets net worth in 2020 (i will see if you put in 2019)

Answers

Answer:

62.6 billion

Explanation:

What is abacus. List it's features in points.​

Answers

Answer:

An abacus is a manual aid to calculating that consists of beads or disks that can be moved up and down on a series of sticks or strings within a usually wooden frame. The abacus itself doesn't calculate; it's simply a device for helping a human being to calculate by remembering what has been counted.

Explanation:

In the scenario below, decide whether you should upgrade the computer or replace it. You’ve been working on your existing laptop computer for 3 years. It seems to be running just fine except for the times that you need to run video-editing software for your film hobby. Plus, there is a new program that your friends are using for their video editing, and you think it is pretty cool, but it might not run on your laptop. What should you do?

Answers

Answer:

Replace

Explanation:

Since the laptop is already 3 years old and you cant just open laptops it wuld be better to just replace

Answer:

B. Replace

Explanation:

When you been working on the laptop for three years it probably won't work so you'll need to replace the old laptop with a new laptop. But if the laptop still works over that three years you can still replace it if you want.

I hope this helps. <3

Have a nice day.<3

Need help ASAP

Thankss + BRAINLIST only for correct answers

Answers

Explanation:

The purpose to the user: having entertainment, a fun thing to do when there is nothing else to do.

The purpose to the creator: making money, the user has to pay for the entertainment.

Select the correct answer from each drop-down menu.
You can lose data
. So, you should periodically back up your data

Answers

Answer:

... where drop down menu? from what i got, back up ur data daily

Explanation:

Answer:

The answer is: "You can lose data because of a virus attack, So you should periodically back up your data on a different hard drive."

Explanation:

I got it right on the Edmentum test.

Python
Write a function that calculates a cell phone bill
First screenshot of rules and such
Second screenshot is example of outcome

Answers

print("welcome to the bill calculator")

minutes = float(input("number of minutes you used: "))

data = float(input("the amount of data you used in GB: "))

print("your basic plan costs $39.99 per month")

mcost = (minutes - 450) * .45

print("you will be charged " +  str(mcost) + " for the minutes you used")

print("the monthly data fee is $30.00")

dcost = (data - 3) * 10

print("you will be charged " + str(dcost) + " for the extra data you used")

total = mcost + dcost + 69.99

print("your total bill is " + str(total))

the 20 value your teacher gave may be incorrect, bc 4.2-3*10 = 12 not 20, making the total 109.89

Write a description of the photograph to someone who cannot see the photograph. Be sure to include the title of the photograph and photographer credit in your response.

Answers

Answer:

I do not have a photo as a example but you could explain the feeling that it gives you and if its gloomy or happy go lucky you can also explain the main colors in the photo as well as the charters and/or type of object/s are in the photo

what role does javascript play in a web page

Answers

Answer:

Js is an programming language usually used for coding. It is used on most browsers to produce an effective and interactive design for some users.

WILL GIVE BRAINLYEST You would like to implement the rule of thirds to present high-resolution images in an IT scrapbook. The scrapbook includes images of computer and other IT devices. How can you do this for the scrapbook?
You can implement the rule of thirds by placing the ____(Key, Larger, Smaller)
part of the image along ____ (Central, Intersecting, margin) the
lines.

Answers

Answer:

key              margin

Explanation:

kid rally have a explantions

If the user inputs “10” for the first expense and “20” for the second expense, what will the interpreter show in the final line when this program is run? If this result in not what the programmer intended, how would you explain what went wrong?

Answers

Yes :) I totally agree with the person above me ^

if i want a word to be keyed in all capital letters, which is the correct proofreader's mark?

Answers

----
----
---
Three lines under a lowercase letter mean to make it a capital.

Help Me Please. I'm Begging you

Answers

Answer:

d and b can't see the last ones answer so im guessing this is what you needed.

Explanation:

Using the drop-down menus, choose the correct term for each description or sentence.
The main storage device inside a computer where programs and files are saved is called
the
The process of getting instructions from RAM, decoding, executing, and then storing is a process
known as the
FireWire, Ethernet, modem, and USB are all examples of
0101010 is an example of

Answers

Answer:

There is no drop-down menu in your question

Hard driveMachine cyclePortsBinary Number

Explanation:

1.) The main storage device inside a computer where programs and files are saved is called hard drive.

2.) The process of getting instructions from RAM, decoding, executing, and then storing is a process known as Machine Cycle.

3.) FireWire, Ethernet, modem, and USB are all examples of ports.

4.) 0101010 is an example of a binary number.

Answer:

Using the drop-down menus, choose the correct term for each description or sentence.

The main storage device inside a computer where programs and files are saved is called the hardriveThe process of getting instructions from RAM, decoding, executing, and then storing is a process  known as the machine cycleFireWire, Ethernet, modem, and USB are all examples of ports.0101010 is an example of binary

here are also the answers to the next questions:

Using the drop-down menus, choose the correct term for each description or sentence.

A display or monitor with a larger number of  ✔ pixels  will have a clearer, more brilliant resolution.The more  ✔ bytes a thumb drive has, the more storage capability it will provide.The more  ✔ hertz  a microprocessor or CPU has, the faster it will process data.A computer’s speed is measured in ✔ hertz , and a computer’s internal memory  capacity is measured in  ✔ bytes .

Complete each sentence by choosing the correct answer from the drop-down menus.

The  ✔ USB port would not be found inside the system unit.A very fast port used for audio/video output is called ✔ FireWire .A very high-speed network connection port is called  ✔ Ethernet .USB stands for ✔ Universal Serial Bus .

Hope it helps.

Explanation:

DOSE ENY ONE KNOW WHAT TOOLS THEASE ARE NEXT TO THIS GUY BECAUSE I AM AT A LOSE ON THIS ONE??????????

Answers

Those look like very old tools

All are secret and destructive weapons I guess

Other Questions
HELP PLS AND PLS GIVE ME THE RIGHR ANSWER I GIVE BRAINLIST Four major candidates ran in the 1824 election, all under the "Democratic-Republican" name. One of the candidates, Andrew Jackson, was already famous. In the 1780s, he earned the right to practice law and served in various offices of the state government, including senator. He earned the nickname "Old Hickory" for his toughness as a general during the War of 1812 and First Seminole War. Jackson supported slavery and "Indian removal." This earned him support from voters in southern and frontier states. The other three candidates were John Quincy Adams of Massachusetts, Henry Clay of Kentucky, and William Crawford of Georgia.U.S. presidents are elected through the Electoral College. The Founding Fathers worried that Americans were too spread out to learn enough about the candidates. Under the Electoral College, Americans cast their ballot for the popular vote, which chooses the electors for each state. The number of electoral votes each state equals the number of representatives and senators combined. The candidates must win an absolute majority of electoral votes to win the election.In 1824, Andrew Jackson won the popular vote, but he did not win it in each state. Jackson and Adams both won many electoral votes. Jackson won the most with 99. However, a candidate needs an absolute majority of electoral votes to win. In 1824, Jackson needed 131 to win. When there is not majority winner, the election goes to the House of Representatives. This has only happened twice in U.S. history.Even though he won the popular vote and many electoral votes, Andrew Jackson lost the presidency in 1824. John Quincy Adams was the Secretary of State at this time. Henry Clay was the Speaker of the House of Representatives. Henry Clay, receiving the least, was left out. However, as a leader in the House of Representatives, he had influence over the other members. Clay openly hated Jackson and there were rumors that Clay made a deal with Adams in exchange for his support. The House election declared John Quincy Adams president. Soon, he chose Henry Clay to fill the seat he left vacant, Secretary of State. Jackson was shocked and enraged. Although there was no inquiry of possible wrongdoing, Jackson accused Adams and Clay of making a "corrupt bargain."John Quincy Adams was a disappointment as president. Many of his goals created divisions like federal funds for internal improvement. Some states thought that taking federal funds would force them to follow certain rules. They felt this reduced their rights as independent states. Jackson took advantage of issues like this one to gather more support. More Jackson supporters found their way to seats in Congress. He was as a man of the people and said Adams could never understand the common mans concerns.John Quincy Adams ran against Andrew Jackson in the 1828 election. Personal attacks grew even more vicious, but Andrew Jackson appealed to many. He believed government was for the common man. He believed in strict reading of the law and limited internal improvements. He also believed in states rights.Andrew Jackson easily won the 1828 election, winning both the popular vote and a majority of electoral votes. Historians note the sectional nature of the voting. Support for Jackson was concentrated in South while Adams support was mostly in the North. Jackson was so popular because he brought changes to the government. He also wanted to make sure the government was responsible for its actions. Jackson pushed settlement into the frontier. He supported the Indian Removal act. He also defended the spread of slavery. Though his support was heavier in the South, he was determined to keep a unified nation. The rise and presidency of Old Hickory is memorable to Americans today.Which best describes the purpose of the Electoral College in the United States? Chooses the winner of an election if the popular vote is disputed Reduces the number of smear campaigns among candidates Publishes the results from each state's chosen electors Determines the winner of the presidential election PACK is a rectangle with a perimeter of 40 units. Find the measure of angle O to the nearest degree. Alexa has a points card for a movie theater. She receives 25 rewards points just for signing up. She earns 4.5 points for each visit to the movie theater. She needs 61 points for a free movie ticket. How many visits must Alexa make to earn a free movie ticket? i need help on number 5 this is due at 11.59 thank you :) A college admits a freshman class of 330 students at the beginning of each academic year and graduates 145 students twice a year. What will be the net change in student population after 5 years? Select the inequality below that could have 7 as a solution.21x 712+ x > 1514x 28 Which statement describes the province of Quebec?Group of answer choicesis located in western Canadahas a very small populationthe largest Canadian province and in eastern Canada. 2. Write the expression as an exponent.7 x 7 x 7 x 7 x 7 x 7 x 7 REEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE Determine the slope and the y-intercept Y=2x-3 WILL MARK YOU BRAINLIEST EASY POINTS!!!!What do you see in the picture? find the sum of 9/10 and 5/6 write an equation? Find the median of the prices:$280, $515, $450, $295, $420, $475, $260, $515, $495$515$450$420$411.67 Why might people find rigoberta Menchu' life inspiring HELP ASAP WILL GIVE BRAILIEST cellular respiration uses glucose and oxygen to make usually it is a rectangular box placeed or underneath your desk There is no failure except in no longer trying. -Elbert Hubbard In your own words, what does this quote mean to you?