Python exercise c2 q4
Sam wants to write a code that will produce the following:
000
00...
Computers and Technology, 05.02.2021 14:00, sanafarghal
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: 2
Computers and Technology, 22.06.2019 02:20, eagles2286
The reset circuit used on the four 3-bit counters analyzed in this activity reset the counts to zero (000). it makes sense for the up-counters to start at zero (000), but the down-counters should start at seven (111). what would you need to change so that the 3-bit binary down counter with j/k flip-flops you just created would reset to seven (111)?
Answers: 1
Computers and Technology, 22.06.2019 15:20, brookemcelhaney
The north and south regions had very diferent economies in the 1800s.
Answers: 1
Computers and Technology, 22.06.2019 19:00, alyssashae1818
Which parts of a presentation should be the most general? a. introduction and conclusion b. introduction and outline c. outline and conclusion d. outline and body
Answers: 1
Computers and Technology, 23.06.2019 11:00, jolleyrancher78
What are the possible consequences of computer hacking? what is computer piracy? describe some examples. what are the effects of computer piracy? what are the possible consequences of computer piracy? what is intentional virus setting? describe some examples. what are the effects of intentional virus setting? what are the possible consequences of intentional virus setting? what is invasion of privacy? describe some examples. what are the effects of invasion of privacy? what are the possible consequences of invasion of privacy? what is an acceptable use policy and what is the purpose of the acceptable use policy what is intellectual property and how can you use it?
Answers: 1
Mathematics, 05.03.2021 20:20
English, 05.03.2021 20:20
Mathematics, 05.03.2021 20:20
Mathematics, 05.03.2021 20:20
Chemistry, 05.03.2021 20:20