1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
ahrayia [7]
3 years ago
11

To iterate through (access all the entries of) a two-dimensional arrays you

Computers and Technology
1 answer:
ahrayia [7]3 years ago
6 0

Answer: You would need two loops to iterate through both dimensions

Explanation:

matrix = [[1,2,3,4,5],

              [6,7,8,9,10],

              [11,12,13,14,15]]

for rows in matrix:

    for numbers in rows:

         print(numbers)

The first loop cycles through all the immediate subjects in it, which are the three lists. The second loop calls the for loop variable and iterates through each individual subject because they are lists. So the first loop iterates through the 1st dimension (the lists) and the seconds loop iterates through the 2nd dimension (the numbers in the lists).

You might be interested in
you have a column of dog breeds that are in all capital letters. what function would you use to convert those dog breeds so that
topjm [15]

The function  that would help you use to convert those dog breeds so that only the first letter of each word is capitalized is  upper() function.

<h3>What are Excel functions for changing text case?</h3>

There are some 3 main functions which are:

  • UPPER
  • LOWER
  • PROPER.

Note that the upper() function helps one to to convert all lowercase letters in a text string to a case that is uppercase and as such, The function  that would help you use to convert those dog breeds so that only the first letter of each word is capitalized is  upper() function.

Learn more about   function from

brainly.com/question/23459086

#SPJ2

3 0
2 years ago
what is the difference between recursion and iteration in C, and their advantages and disadvantages? ...?
madam [21]

I think both recursive and iteration are different programming approaches which have their own benefits and drawbacks .

<span><span>Recursive approach: In recursive approach the function calls itself until the condition is met. And it is slower than iteration,which means it uses more memory than iteration. recursion is like a selection structure, and which makes code smaller and clean. And a function partially defined by itself. Here tracing the code will be more difficult in the case large programs.</span><span><span>Iterative approach: </span>Iterative approach is a repetition process until the condition fails,here loops are used such as for ,while etc. Here code may be longer but it is faster than recursive. And it consumes less memory compared to recursive approach.If the loop condition is always true in such cases it will be an infinite loop.</span></span>
7 0
3 years ago
If a schema is not given, you may assume a table structure that makes sense in the context of the question. (using sql queries)
adell [148]

Answer:

The correct query is;

select * from EMPLOYEE where Employee_Name = 'JOE' or Employee_Name = 'Joe' or Employee_Name = 'joe';

where EMPLOYEE refer to the table name and type attribute name is Employee_Name

Explanation:

Here, the first thing we will do is to assume the name of the table.

Let’s assume the table name is EMPLOYEE, where the column i.e attribute from which we will be extracting our information is Employee_Name

The correct query to get the piece of information we are looking for will be;

select * from EMPLOYEE where Employee_Name = 'JOE' or Employee_Name = 'Joe' or Employee_Name = 'joe';

6 0
4 years ago
Decisions are individual and reflect the situations that are in your own personal life true or false
Nesterboy [21]
It is false because some decisions can effect other people as well
6 0
4 years ago
Read 2 more answers
Write a program to input the length and width of a rectangle and calculate and print the perimeter and area of the rectangle.
Phantasy [73]

\tt L=(float(input("Enter\:Length\:of\:rectangle=")))

\tt B=(float(input("Enter\:Breadth\:of\:the\:rectangle=")))

\tt P=2*(L+B)

\tt A=L*B

\tt print("Perimeter\:of\:the\:rectangle=",P)

\tt print("Area\:of\:the\:rectangle=",A)

7 0
3 years ago
Other questions:
  • Form the recurrence relations (RRs) for the number of vertices and the number of edges of a hypercube of n dimensions, Hn. Solve
    13·1 answer
  • The software application associated with a specific file type is called a(n) __________ application.
    12·1 answer
  • Write a method that accepts a String object as an argument and returns a copy of the string with the first character of each sen
    14·1 answer
  • Compare and contrast CD and DVD?
    10·2 answers
  • Earth's current era is the _______ era.
    9·2 answers
  • When is historical data not useful
    5·1 answer
  • Example of Not a computer characteristics example
    12·1 answer
  • Create class SavingsAccount. Use a static variable annualInterestRate to store the annual interest rate for all account holders.
    11·1 answer
  • Need help with this please
    13·1 answer
  • Before a computer can use a router, what configuration information must it be provided?
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!