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

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

So far , All of the input that we have seen comes directly from the user with your partner brainstorm other ways an app might get the information that it needs

Answers

Answer:

An app can get information from the device itself like diagnostic data or location.

Explanation:

The first photo in the collage is what I should make a copy of, anyone has any knowledge on how to add the numbers apart of the spreadsheet and the letters? ​

Answers

Pick the cell that you want the combined data to be in.
Type the formula, with double quotes within the file. For instance: ="Due in "&A3 &" days"
NOTE: End or begin the text string with a space to separate the text strings from the numbers.
To complete the formula, press Enter

A piece of hardware used to enter data into a computer: Output Device Backing Storage Device Programming language Input Device

Answers

Answer:

Input Device.

Explanation:

A piece of hardware used to enter data into a computer is known as an input device.

Basically, this input device is also known as peripherals and it comprises of all of the devices that are interconnected with the CPU. Some examples of input devices used with a computer includes keyboards, scanner, mouse, etc. They avail the end users the ability to send an information to the computer system for processing into a desired output.

How do ACLs work on a router?

Answers

Answer:

An ACL is a list of permit or deny rules detailing what can or can't enter or leave the interface of a router. Every packet that attempts to enter or leave a router must be tested against each rule in the ACL until a match is found. If no match is found, then it will be denied.

Explanation:

PLEASE MARK ME AS BRAINLIEST

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.

How do we store value in a variable? Give an example

How do we use the value in variable? Give an example

Answers

Answer:

hi

Explanation:

im not smart

HELP ME PLEASE PLEASE PLEASE!!!! IM BEGING YOU!!!!
In your own words, describe in detail the different types of image licensing. How does image metadata play a role in these licenses and why is that important.

Answers

Answer:

Photo metadata is a set of data describing and providing information about rights and administration of an image. It allows information to be transported with an image file, in a way that can be understood by other software and human users.

Explanation:

What is 01010101 converted to denary

Answers

Answer:

85

Explanation:

0 + 64 + 0 + 16 + 0 + 4 + 0 + 1 = 85

PLEASE HELP ASAP!! Timed test!!
Lakendra finished working on her monthly report. In looking it over, she saw that it had large blocks of white space. What steps could Lakendra
take to reduce the amount of white space? It’s more than one answer!!
A. Include more special effects
B. Have an unjustified right margin
C. Increase the use of boxes and rules
D. Adjust column spacing

Answers

Answer:

d i think

Explanation:

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

A computer scientist creates an app that tells you a funny joke each time you touch the Joke button.
a. What does the view layer for this app contain?


b. What does the controller layer do for this app?

Answers

Answer:

B And A

Explanation:

B: The controller renders a responce it can be seen as a manager and other parts are its workers and makes sure that other parts are "working" well

Answer:

He's actually right- it's B and A.

Explanation:

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:

The binary number represented by the voltage graph below is

I will give you brainlist if you actually answer

Answers

Answer:

the answer is the pattern is odd numbers like Odd numbers are whole numbers that cannot be divided exactly into pairs. Odd numbers, when divided by 2, leave a remainder of 1. 1, 3, 5, 7, 9, 11, 13, 15 are sequential odd numbers. Odd numbers have the digits 1, 3, 5, 7 or 9 in their ones place.

Explanation:

Answer:

11010100

Explanation:

please an urgent answer
will give brainliest
what is the definition of bucket address.​

Answers

Is this technology? Let me know so I can help you!!

hi good morning how are you all
I hope you all are fine
ok now question is what is LAN?
have a nice day

Answers

Answer:

Local area network

Explanation:

d6odyiitdidditsitstiistssitdditzdditidztsto

It’s a local area network, a computer network that interconnects computers within a limited area such as a residence, school, laboratory, university campus or office building.

A screw has 4 threads per centimeter and a circumference of 2 centimeters. What is the mechanical advantage of the screw? 2 4 6 8

Answers

Answer:

M.A = 8

Explanation:

Given the following data;

Circumference = 2cm

Number of threads = 4

To find the mechanical advantage (M.A);

[tex] Mechanical \; advantage = \frac {Circumference}{Pitch} [/tex]

But, [tex] Pitch = \frac {1}{number \; of \; threads} [/tex]

[tex] Pitch = \frac {1}{4} [/tex]

Pitch = 0.25

Substituting the values into the equation, we have;

[tex] M.A = \frac {2}{0.25} [/tex]

M.A = 8

Therefore, the mechanical advantage of the screw is 8.

Answer:A screw has 4 threads per centimeter and a circumference of 2 centimeters. What is the mechanical advantage of the screw?

2

4

6

8 THIS IS THE CORRECT ANSWER

Explanation:

Edge 2021 Test Correct

Inserting and deleting text is a basic editing task in word processing.

True or false

Answers

The answer should be true
answer:
true.

hope this helps!

What is the sum of
1
7
10
and
3
3
5
? Use the fraction strips to help.

An image shows two groups of fraction strips. The first group is one one-whole fraction strip and seven one-tenth fraction strips. Under the first group, the second group is three whole fraction strips and six one-tenth fraction strips.

A.
4
7
10
B.
5
C.
5
3
10
D.
3
1
2

Answers

Answer

[tex]1\frac{7}{10} + 3\frac{3}{5} = 5\frac{3}{10}[/tex]

Explanation:

Given

[tex]1\frac{7}{10} + 3\frac{3}{5}[/tex]

Required: Evaluate the sum

[tex]1\frac{7}{10} + 3\frac{3}{5} =[/tex]

Convert to improper fraction

[tex]1\frac{7}{10} + 3\frac{3}{5} = \frac{17}{10} + \frac{18}{5}[/tex]

Take LCM

[tex]1\frac{7}{10} + 3\frac{3}{5} = \frac{17+36}{10}[/tex]

[tex]1\frac{7}{10} + 3\frac{3}{5} = \frac{53}{10}[/tex]

Convert to mixed fraction

[tex]1\frac{7}{10} + 3\frac{3}{5} = 5\frac{3}{10}[/tex]

Answer:

c

Explanation:

Engineers use the following tools to perform their duties. A: science and math, B: math and English, C: science and English, D: math, science , and English​

Answers

Answer:

Science and math

Explanation:

Answer:

D

Explanation:

You need all 3.

PLEASE HELLPPPPP EVERYONE IS IGNORING THISSSSSSSSSS
In your own words, describe in detail the different types of image licensing. How does image metadata play a role in these licenses and why is that important.

Answers

Answer:

Permissive licenses are also known as Apache style or BSD style. They contain minimal requirements about how the software can be modified or redistributed

Explanation:

Will give brainliest!
Who created binary, and does anyone have any idea how?

Answers

Answer:

Gottfried Leibniz created it and Leibniz was trying to find a system that converts logic's verbal statements into a pure mathematical one.

HELP PLEASE
When typing a function in a spreadsheet, you must first type _____



Group of answer choices

A cell reference

A column header

A row number

An equals sign

Answers

The last one, equal sign :))) also could I get brainliest??

You can use a cell reference, which points to a cell or range of cells on a worksheet, to tell Microsoft Office Excel where to find the numbers or data that you want that formula to calculate.Thus, option A is correct.

What a cell reference, function in a spreadsheet?

When you include cell references in a calculation, Excel uses the data in the referenced cells to calculate the result. The formula automatically calculates the new result when a cell's value is changed. To enter the formula, click the cell where you want to do so.

The term “cell reference” or “cell address” refers to the combination of a column letter and a row number that identifies a worksheet cell. For instance, the references A1, B2, and so forth all refer to the cells that are situated where row 1 and column A meet.

Therefore, When typing a function in a spreadsheet, you must first type A cell reference .

Learn more about spreadsheet here:

https://brainly.com/question/8284022

#SPJ2

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

1) What is a RAM and what are it's functions?

2) What is a ROM and what are it's functions? ​

Answers

Answer:

The interpretation of the statement is characterized in the answer section below.

Explanation:

RAM:

This would be the real physiological remembrance of such a computer where even the OS and initiatives were also stacked as well as stored so that the processor could be made available extra rapidly.

The function of RAM:

It's own key marketing strategy as both temporary storage with program guidelines that could be brought major more by CPU even before needed.

ROM:

ROM contains computing which enables the computer system to commence as well as replenish every time these are switched on.

The function of RAM:

Most PCs have such a minuscule percentage of ROM which stores government initiatives, including the program which boots just one desktop.

how was banking in the 1950s​

Answers

Answer:

Diners Club launches the national charge card industry. Previous credit cards had been limited in use to one retail establishment or chain.  1950: Wider Acceptance

Explanation:

Find the value of the expression 5n² + 5n - 2 if n = -2.

Answers

5(-2)^2 + 5(-2) - 2
5(4) - 10 - 2
20 - 10 - 2
10 - 2
8

WILL GIVE BRAINLIEST IF IT IS RIGHT!! 25 POINTS!!!
Dacey needs to calculate the difference between 8,794 and 5,632.
Which Python statement should Dacey use to calculate this?
A.) print(8,794 - 5,632)
B.) print(8,794 * 5,632)
C.) print = 8,794 + 5,632
D.) print("8,794 - 5,632")
(this is for Coding)

Answers

Answer:

A

Explanation:

When you are finding the difference in a code you are subtracting the bigger number from the smaller one. You wouldn't technically use " " when printing a number equation as it doesn't work.

Answer:

The answer is A

Explanation:

they are not multiplying so its not b

they are not adding so its not c

there is NOT quotation marks when calculating.

Workers in a child care facility or preschool are part of what career path?
A. education and training
B. health care
C. human services
D. hospitality

Answers

Answer:

A

Explanation:

Preschool teachers show education

A. Education and training

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

Other Questions
Read the excerpt from Esperanza Rising. Esperanza looked down at Silvia's dirty hands. Silvia grinned up at her and Esperanza's first thought was to pull her hand away and wash it as soon as possible. According to this description, Silvia is messy. shy. thoughtful unhappy. I need help. ASAP A)?B)?C)?D)? What is Cohesion? A. The ability of a molecule to stick to any moleculeB. The ability of molecules to stick to molecules that are differentC. The ability of a molecule to stick to molecules that are the sameD. The ability of molecules to not be able to stick to anything. How does this look? Plz tell me your opinion What caused the Qing dynasty to fall?Be descriptive please!! The next term in the following sequence is 45. 3, 9, 27 How much are American values shaped by our personality, and how much are those values shaped by our socialization? A secular government seeks to separate its decisions and policies from __________ influences. Which of the following are held together by nonpolar covalent bonds? PLEASE HELP What happened because of the attack in Pearl Harbor? Given what you know about the state of affairs in Europe in 1914 as well as the main driversthat ultimately caused the fighting to break out in Europe, why do you think that the leaders ofBritain, France, Germany and Russia were not able to prevent the outbreak of war? Why didn'tdiplomacy work? Weightlessness occurs when an object applies a reaction force to another object. Please select the best answer from the choices provided T F What element has 1 valence electrons and 4 energy levels? Please Find the solution to the following system using substitution or elimination: y = 3x + 7 y = -2x -3 A. (-2,1)B. (-2,-7)C. (1,10)D. (1,-4 In capital budgeting, the accounting rate of return (ARR) decision model: Incorporates the timing of cash flows. Considers the time value of money. Does not provide an unambiguous decision criterion (rule) regarding the acceptance of capital investment projects. Ignores accounting income generated after the break-even point. Ignores cash outflows after the initial investment. PLS HELP I HAVE TIME LIMIT | Wa. State History full year 7thThe map shows a railway to Washington that was built in the 1800s.Which state was the point of origin of this railroad line?IllinoisIowaMinnesotaNebraska Convert 77.2 grams of CH4 to molecules. How many white Southerners defended slavery? THIRTY POINTS!! PLEASE HELPHow did the 1889 Washington State Constitution address American Indian sovereignty?It dissolved Native lands and incorporated them into Washington State. It stated that Native American land and those living there would fall under the jurisdiction of the federal government instead of the state government.It allowed American Indians to govern their land without interference from the state or federal government.It gave the federal and state governments shared jurisdiction over any tribal lands. Ill give u a kiss if u help me with this ASAP PLZZZZ with an explanation ;)