9.6 Code Practice, this is in Python, I need its quick!

9.6 Code Practice, This Is In Python, I Need Its Quick!

Answers

Answer 1

Answer:

def printIt(a):

   for r in range(len(a)):

       for c in range(len(a[0])):

           print(a[r][c], end = " ")

       print(" ")

   print(" ")

   

   for r in range(len(a)):

       x = a[r][r]

       for c in range(len(a[0])):

           a[r][c] = x

           

   for r in range(len(a)):

       for c in range (len(a[0])):

           print(a[r][c], end = " ")

       print(" ")

   

N = []

N.append([1, 2, 3, 4, 5])

N.append([1, 2, 3, 4, 5])

N.append([1, 2, 3, 4, 5])

N.append([1, 2, 3, 4, 5])

printIt(N)

Explanation:

<3

Answer 2

In this exercise we have to have knowledge in python computational language to write code like:

The code can be found in the attached image.

What is an Array?

Widely used by programmers, array is a simple data structure present in most programming languages. Its main purpose is to be a continuous space in memory to organize and store a collection of elements.

This code can be written as:

N = [1,1,1,1,1], [2,2,2,2,2], [3,3,3,3,3], [4,4,4,4,4]

def printIt(ar):

for row in range(len(ar)):

for col in range(len(ar[0])):

print(ar[row][col], end=" ")

print("")

N=[]

for r in range(4):

N.append([])

for r in range(len(N)):

value=1

for c in range(5):

N[r].append(value)

value=value + 1

printIt(N)

print("")

newValue=1

for r in range (len(N)):

for c in range(len(N[0])):

N[r][c] = newValue

newValue = newValue + 1

printIt(N)

See more about python at brainly.com/question/18502436

9.6 Code Practice, This Is In Python, I Need Its Quick!

Related Questions

What is a circuit breaker and how is it different from a fuse? Why do we need these two different devices?
DO NOT PLAGARIZE!

Answers

Answer:

Circuit breakers and fuses both have the same purpose, but a fuse will melt when stopping electricity where as circuit breakers can just be reset. You need both devices in order to stop a overload of power that could fry your electronics or worse, start fires.

Explanation:

Write a C program to insert and delete values from a stack(to perform pop and push operations) using an array data structure

Answers

Answer:

#include<stdio.h>

// Method to insert a value into a stack

void push(char value, char myStack[], int *top, int sizeOfStack){

   if(*top == -1){

       myStack[sizeOfStack - 1] = value;

       *top = sizeOfStack - 1;

   }

   else if(*top == 0){

       printf("Stack is full. \n");

   }

   else{

       myStack[(*top) - 1] = value;

       (*top)--;

   }

}

//Method to remove a value from a stack

void pop(char myStack[], int *top, int sizeOfStack){

   if(*top == -1){

       printf("Stack is empty. \n");

   }

   else{

       printf("Value removed: %c \n", myStack[(*top)]);

       // Now if the value removed was the last value in the stack

       // you should set top to -1.  

       // This would show that the stack is now empty

       if((*top) == sizeOfStack - 1){

           (*top) = -1;

       }

       else{

           (*top)++;

       }

   }

}

//Method to test the pop and push methods

int main() {

 //variable to hold the size of stack

 int sizeOfStack = 6;

 //create the stack

 char myStack[sizeOfStack];

 

 //set the top to -1

 //this is to show that the stack is initially empty

 int top = -1;

 //insert a value tot the stack

 push('x', myStack, &top, sizeOfStack);

 //print the value on the top

 printf("Value on top of stack: %c\n", myStack[top]);

 //insert another value to the stack

 push('y',myStack, &top, sizeOfStack);

 //print the value on the top of the stack

 printf("Value on top of stack: %c\n", myStack[top]);

 //insert another value to the stack

 push('z',myStack, &top, sizeOfStack);

 //print the value on the top of the stack

 printf("Value on top of stack: %c\n", myStack[top]);

 //remove the last inserted value

 pop(myStack, &top, sizeOfStack);

 //print the value on the top of the stack

 printf("Value on top of stack: %c\n", myStack[top]);

 //remove another value

 pop(myStack, &top, sizeOfStack);

 //print the value on the top of the stack

 printf("Value on top of stack: %c\n", myStack[top]);

 return 0;

}

Sample Output:

Value on top of stack: x

Value on top of stack: y

Value on top of stack: z

Value removed: z  

Value on top of stack: y

Value removed: y  

Value on top of stack: x

Explanation:

The code above has been written in c and it contains comments explaining important parts of the code. Please go through the comments.

It also contains a sample output resulting from the run of the program.

Ryan is installing new flooring in his house. Ryan can install 169 square feet of flooring in 5 hours. How much new flooring can Ryan install in 35 hours?

Answers

Answer:

1183 square feet.

Explanation:

If Ryan can install 169 square feet in 5hours.

Then, he can install times 7 of that in 35 hours since 35 / 5 = 7

So, 169 x 7 = 1183

The decimal equivalent of the product of 1011 and 1100 is

Answers

Answer:

132

Explanation:

We convert each number to base 10 (decimal) and multiply.

So 1011₂ = 1 × 2³ + 0 × 2² + 1 × 2¹ + 1 × 2⁰

= 1 × 8 + 0 × 4 + 1 × 2 + 1 × 1

= 8 + 0 + 2 + 1

= 11₁₀

1100₂ = 1 × 2³ + 1 × 2² + 0 × 2¹ + 0 × 2⁰

= 1 × 8 + 1 × 4 + 0 × 2 + 0 × 1

= 8 + 4 + 0 + 0

= 12₁₀

So, 1011₂ × 1100₂ = 11₁₀ × 12₁₀ = 132₁₀

So, the decimal equivalent of the product of 1011 and 1100 is 132

The following if statement tests the rainfall in New York’s Central Park during the months of June, July and August.

if (low <= rain && rain <= high)
System.out.println("Rainfall amount is normal.");
else
System.out.println("Rainfall amount is abnormal.");
It could be replaced with:
I.

if (rain >= low)
{
if (rain <= high)
System.out.println("Rainfall amount is normal.");
}
else
System.out.println("Rainfall amount is abnormal.");
II.

if (rain >= low)
{
if (rain <= high)
System.out.println("Rainfall amount is normal.");
else
System.out.println("Rainfall amount is abnormal.");
}
else
System.out.println("Rainfall amount is abnormal.");
III.

if (rain >= low)
System.out.println("Rainfall amount is normal.");
else if (rain <= high)
System.out.println("Rainfall amount is normal.");
else
System.out.println("Rainfall amount is abnormal.");
I only
II only
III only
(II or III)
I, II or III

Answers

Answer:

II only

Explanation:

In the original code, both conditions of low<=rain and rain >= high must be met for the print message to be executed. This is denoted by the && logical operator.

The code in II does the same thing. It first checks that the low <=rain condition is true; then it goes on to check if the rain >= high condition is true as well before the "normal" print statement can be executed. But if either of the condition is not true, it prints "abnormal" because both conditions must be true.

Don't Answer if you are going to give me a link! Don't Waste My Points!

Keisha is working with a furniture company to take branding photographs for their website. The furniture is fun, brightly colored, and meant for children’s rooms. What props should Keisha bring to get the best branding photographs for the company?

A.
some cups of steaming espresso and linen napkins

B.
adult clothing and dark, heavy curtains

C.
her camera equipment

D.
children’s toys and brightly colored rugs

Answers

Answer:

D. Childrens Toys and brigh colored rugs

Explanation:

It is because they mentioned that it was for children and they already have bright furniture, so it only makes sense.

What market was technology designed to appeal to?

Answers

Answer:

Explanation: Technology has transformed marketing by making campaigns more personalized and immersive for people and creating ecosystems that are more integrated and targeted for marketers. And it's not just the interface between brands and people that have been transformed.

does trend in computing important for organization management?explain​

Answers

Answer:

Yes

Explanation:

Trend analysis can improve your business by helping you identify areas with your organisation that are doing well, as well as areas that are not doing well. In this way it provides valuable evidence to help inform better decision making around your longer-term strategy as well as ways to futureproof your business.

Patch application are essential to any network. Select the characteristics(s) of patch applications.

A. identify
B. classifying
C. notifying
D. all the above


HELP I REALLY NEED IT ​

Answers

All the above I believe.

Name the factors which of the following resources relate to :
RESOURCE FACTOR
1.Computer
2.Personal secretary
3.Raw materials
4.Laboratory equipment
5.The administration block

Answers

Answer:

1. Computer; Capital

2. Personal secretary; Labor

3. Laboratory equipment; Capital

4. The administrative block; Capital

Explanation:

The factors of production includes;

a. Land; Which comprises of the natural resources

b. Labor; Physical and mental human resources

c. Capital; Encompasses resource which are manmade, including equipment and  buildings

d. Enterprise; The act of or the combination of the other three factors of production

Therefore;

1. Computer; The computer is a manmade resource and is therefore a capital resource

2. Personal secretary; A personal secretary contribute mainly mentally to the production of goods and services and is therefore a labor resource

3. Laboratory equipment; The laboratory equipment being manmade is a capital resource

4. The administrative block; An administrative block is a building and is therefore a capital resource.

The National Archives is part of the federal government, which means that its content:

-belongs to everyone.

-is off limits to the public.

-comes with extreme licensing fees.

-is outdated and useless.

Answers

Answer:

belongs to everyone.

Explanation:

A National Archive can be defined as the collection of data (informations) and documents by the government of a particular country for record keeping purposes.

Basically, these documents comprises of information about important and historical events that have happened in the country or events generally related with the country.

Hence, the National Archives is part of the federal government, which means that its content belongs to everyone. This is simply because the federal government is a government of the people, for the people and by the people. Thus, the ownership of governmental institutions or agencies belongs to the general public i.e the citizens of the country.

P16 Consider the following network. ISP B provides national backbone service to regional ISP A. ISP C provides national backbone service to regional ISP D. Each ISP consists of one AS. B and C peer with each other in two places using BGP. Consider traffic going from A to D. B would prefer to hand that traffic over to C on the West Coast (so that C would have to absorb the cost of carrying the traffic cross-country), while C would prefer to get the traffic via its East Coast peering point with B (so that B would have carried the traffic across the country). What BGP mechanism might C use, so that B would hand over A-to-D traffic at its East Coast peering point?

Answers

Solution :

Considering the following data :

[tex]$\text{ISP B}$[/tex] provides the national backbone to the regional [tex]$\text{ISP A}$[/tex].

[tex]$\text{ISP C}$[/tex] provides the national backbone to the regional [tex]$\text{ISP D}$[/tex].

Each of the ISP consists of one autonomous systems (AS).

[tex]$\text{ISP B}$[/tex] would like to hand over the traffic of C through the [tex]$\text{West}$[/tex] Coast.

The [tex]$\text{ISP C}$[/tex] would like to receive traffic from B's peering point via East Coast.

One way for [tex]$C$[/tex] to force [tex]$B$[/tex] to hand over all of [tex]$B$[/tex]’s traffic to [tex]$D$[/tex] on the east coast is for [tex]$C$[/tex] to  only advertise its route to [tex]$D$[/tex] via its east coast peering point with [tex]$C$[/tex].

What tool do you use to fill a cell with color?
Sort
Fill Color
Bold
Function bar

Answers

to fill a cell with Color you will usethe fill Color tool

which statement about routers is !!!FALSE!!!

a. they (routers) put packets in the right order after they arrive at their destination

b. they are located at the intersections of the network of wires and cables that make up the internet.

c. they check the address on each packet that arrives and decide which way it should go next​

Answers

Answer:

b. they are located at the intersections of the network of wires and cables that make up the internet.

Explanation:

Given that Router is a computer networking device that operates by transferring data packets between computer networks, while also ensuring traffic organizing tasks on the Internet.

Hence, Routers put packets in the right order after they arrive at their destination by matching the destination IP address of the packet and one of the addresses in the routing table.

Also, Routers check the address on each packet that arrives and decide which way it should go next​ by ensuring the data packets are summarized for the outgoing interface recorded in the table entry.

Therefore, the correct answer is option B

Any tips or tricks I can use on my phone?​

Answers

Answer:

What phone you got mate? I'm interested

Answer:

No ffrjrirrjj dudjddiejejej

what is data? why is it important to collect data ? explain the points.​

Answers

Answer:

so i dont know if u mean like science or math but like there similar. so data is the results and information you get when you do experiments. It is important to collect it so it can back up your reasons and points. It also helps us advance and become smarter.

Explanation:

Don't Answer if you are going to give me a link! Don't Waste My Points!

An image is considered a portrait if the person is looking into the camera lens.

A.
True

B.
False

Answers

Answer:

Hello there! :) It could be considered a portrait but that is not exactly what a portrait is.

Explanation:

A portrait is mostly considered a painting or drawing of someone that that same person has drawn. For example, a portrait of the Mona Lisa would have been her drawing/painting herself. Now someone just looking at camera lens would'nt exactly be true, it would be false so the answer is B. False

Hope this helps!

Answer: False

Explanation: I don't know 100%, but it wouldn't make sense if it was because the person can be really far away and still be looking at camera, as well as be looking slightly away from lens and it still look like a portrait.

Choose the correct color to complete the sentence.
It is generally understood that
Blank is the best color choice for a global audience.

Answers

Answer:blue is the best color choice for a global audience.

Where is information stored in the computer?​

Answers

Answer:

files

Explanation:

data is stored in files

PLEASE BE CONFIDENT ABOUT YOUR ANSWER


Which of the following statements is FALSE?
the value of the ID attribute....

a. may not start with a number
b. must be unique within each document
c. must not start with a special character
d. should be lowercase?

Answers

Answer: d. should be lowercase.

Explanation:

ID attributes are case sensitive for the most part - DOM and Java Script - which means that the ID attribute does not always have to be lowercase.

It can be uppercase as well. ID attributes can also start with a number and as of HTML 5 can start with a special character as well. Finally, the ID attribute must always be unique within each document.

Answer:

d. should be lowercase?

Explanation:

Hope this helps

This holiday season, the hottest gift was a doll named Sparkle Princess. Within a few hours, all of the stores sold out their stock of this doll.
People who had been fortunate enough to buy a doll began to sell their dolls on the internet. Thousands of people logged on to try to buy one of
the few dolls that were being sold on the internet. What MOST likely happened with the internet sales?
O A. The price went down because the supply was low and the demand was high
ОВ. The price went up because the supply was low and the demand was high,
OC. The price went down because the supply was high and the demand was low.
D. The price went up because the supply was high and the demand was low.

Answers

Answer: B. The price went up because the supply was low and the demand was high,

Explanation:

Based on the information given in the question, when there is a reduction in the supply of a particular good, the effect it has on the price is that there'll be a rise in the price of such good.

In this case, since there is a reduction in the supply of the good as a result of the fact that all the stores have sold out their stock, and it was been resold by some of the people that purchased it earlier, there'll be an increase in the price of the doll since the demand is more than the supply. This will breathe scarcity and increase price.

Therefore, the correct option is B

The price went up because the supply was low and the demand was high.

Do Not Answer If You Are Going To Give Me A Link! DONT WASTE MY POINTS!!
Choi is trying out for a reality show on television. The application requires a self-portrait. Choi is setting up a self-portrait but wants to get her whole body. How might Choi BEST take a self-portrait that looks professional enough to submit?

A.
She could stand in front of a mirror holding her phone to take the photo.

B.
She could hold up the camera and take a selfie pointed down toward her body.

C.
She could use a self-timer to allow herself to get into position for the shot.

D.
She could ask her friend to take a photo of her as she stands against a background.

Answers

Answer:

My answer may be right nor wrong

A.

Answer: D seems like a good answer because she has a background behind her and it's a full body photo so i will say d looks more professional

Explanation:

In order to reduce the file size of an image in Word, the user should use
A. the Corrections tool to make the image less bright.
B. the Compress Pictures tool to change the picture's size.
C. text wrap to decrease the document's page count.
D. handles surrounding the image to make it appear smaller.

Answers

Answer:

The user should use;

B. The Compress Pictures tool to change the picture's size

Explanation:

The Compress Pictures tool in Microsoft Word allows a user to reduce a picture's file size inside the application window with options of compressions based on the intended use of the picture such as for emailing or onscreen view.

Options are available to compress all the pictures in the file or only those which are selected

The Picture Format tab is automatically displayed when a picture is selected and the Compress Pictures tool is included in the Adjust group within the displayed Pictures Format tab ribbon.

write an algorithm to print the natural numbers from 1 to 15​

Answers

Answer:

1. n = [ ]

2. i = 0

3. j = i + 1

4. i = j

5. append i to n

6. Repeat 3 to 5

7. Stop when i = 15

What type of system is associated with weather that has lots of clouds and thunderstorms with the possibility of tornadoes?
A.
high pressure system
B.
arctic system
C.
low pressure system
D.
circulatory system

Answers

Answer:

low pressure

Explanation: A low-pressure system is always associated with more clouds, thunderstorms, and also the development of swirling air masses such as tornadoes and cyclones.

The invention of computers as a technological tool has completely changed our lives. Name any three areas to support this statement and explain how computers have made our lives better

Answers

Answer:

-They allow huge amounts of information to be stored in a small space

-They also allow a person to calculate mathematical problems with ease

-They allow people to communicate with one another through internet sites

-Finally, computers provide teachers and students the means to communicate quickly via email. Online grading systems also make it easier to view and audit a student's progress

Hope i helped!

Can you please help me? I give you a brainlest
! ​

Answers

1.
2.satin stitch
3.lazy daisy stitch (detached chain )
4.chain stitch
5. cross stitch
6. french knot
7.
8.split stitch
9.
10. back stitch
the others i can’t tell.

explain types of fans & their function​

Answers

Answer: 1. Ceiling Fan: As they are suspended into the middle of the room, they transfer air in equal quantity.

2. Table Fan: Used in small purpose office room and home tables for max. 5 people.

3. Tower Fan: Take lesser space, compact and portable, used to maintain and encourage air flow.

4. Pedestal/Stand Fan: Used in rooms with larger space, make less sound, are portable and used in a single room at a time for up to 10 people.

5. Exhaust Fan: Used in bathrooms and kitchens to provide ventilation and remove any odour or smoke.

               

Explanation:

To print preview a document, navigate to the _____ tab and select the Print option. File Page Design View Insert

Answers

Answer:

Option A

Explanation:

The process of viewing the print preview option in MS word is as follows -

a) First of all click on the File tab

b) After clicking on file tab, click on the print button at the left hand side

c) In the new tab that open up after clicking on the print button will provide an option of print preview.

Hence, option A is correct

Answer:

b. page layout

Explanation:

WHERE THE SMART PEOPLE AT??????


PLEASE I NEED HELP

THIS IS MY LAST QUESTION FOR THE TEST

PLEASE

I KNOW THE ANSWER IM JUST MAKING SURE


You can use tables for layout work. However, in XHTML, each form control should have its own ______ element

a. method

b. textarea

c. label

d. fieldset

Answers

Answer:

I would say A. Method

Explanation:

.

Other Questions
Principal, $2000; Annual interest rate, 5.3%; time, 2 yearsAfter 2 years? Please help!!!!Read these lines of the final stanza of the poem.How do these lines contribute to the overall theme of the poem? Give the Spanish conjunction for the following: 1. I am (ser) 2. You are (ser) 3. I am (estar) 4. You are (estar) Give examples of herbivores,carnivores,and omnivores animals (Two) From Rachel Robinsons point of view, how did Jackie overcome that challenge? Goodstone Tire Corporation sells tires for $100 each. Per unit costs associated with producing and selling the tires are: Direct materials and labor $45; Factory overhead $20; Selling and administrative $15. The variable portion of the factory overhead is $8 per unit. A foreign company wants to purchase 10,000 tires for $70 each. The order would not require any selling or administrative costs. The purchaser will pay the shipping costs, but Goodstone will have to pay a $100,000 inspection fee in order to be able to make the foreign sale. Accepting the special order will not affect current sales or production. What effect would accepting the special order have on Goodstone's net operating income An acronymic sentence can list the information you are trying to remember in a specific order as well as in any sequence of your choosing.Please select the best answer from the choices providedTF What are three ways we can measure sustainability while evaluating whether to buy a product?Personal, Political, and Entertainment impactsEnvironmental, Political, and Equitable ImpactsEnvironmental, Economic, and Societal ImpactsEconomic, Personal, and Popularity Impacts If you resection the lower spinal cord of a cat such that the nerves to the hind legs are isolated from the brain, and the cat is still able to walk on a treadmill, you have demonstrated that motor commands must have originated in the lower portion of the spinal cord. This is evidence for the existence of ___________. Nicholas is currently in eighth grade and intends to attend a state college when he finishes high school. Nicholass parents currently have some money invested in mutual funds, but would like to invest this money in a more secure investment now to pay for college in 4 years. If they will need $25,000, how much do Nicholass parents have to invest now in a 48month CD that has a rate of 4.59% compounded monthly? Which one is the correct answer, please help. i need the correct answer plss When you are looking at several products and comparing quality andprice before deciding which item best meets one's needs, you are ?A. speed shoppingB. window shoppingC. comparison shoppingD. contrast shopping Can someone please please help me Ill give brainiest Which of the following is an example of regulated waste?O A. A used napkinB. A used needleC. A used blanketD. A used bed sheetSUBM Topic: should college be free for everyone?Need thesis and three reasons specific reasons im almost done with this hw. plz help!!! give explanation if you actually know the answer so ik u dont just want points Revolutionary America:Question 6Which of the following are the names for the federal (national) representativeassemblies in the United States?Choose all that apply:The SenateParliamentThe House of Representatives Help me please please "Seventy-thousand people were killed instantly, and many more woulddie - 60,000 by November and another 70,000 by 1950. Most of themwould be victims of a new method of killing - radiation." - Ronald Takai Which event led to the situation described in this passage?