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
ololo11 [35]
3 years ago
9

Write a function transpose(matrix) that returns the transpose of the input matrix, which is represented as a list of lists. Reca

ll that the transpose of a matrix is obtained by swapping its rows with its columns. More concretely, the equality matrix[i][j] transpose(matrix)[j][i] should hold for all valid indices i and j. You may assume that the input matrix is well-formed, i.e., that each row is of equal length. You may further assume that the input matrix is non-empty. Your function should not modify the input. transpose([[1, 2, 3]]) [[1], [2], [3]] transpose([[1, 2], [3, 4], [5, 6]]) [[1, 3, 5], [2, 4, 6]]
Computers and Technology
1 answer:
mariarad [96]3 years ago
4 0

Answer:you eat

Explanation:yea

You might be interested in
A fireplace in a blacksmith shop is called a
astraxan [27]
They are called forges
5 0
3 years ago
Design pseudocode for a program that will permit a user to store exactly 50 numbers in an array. Create an array big enough to h
galben [10]

Answer:

#include<stdio.h>

//declare a named constant

#define MAX 50

int main()

{

   //declare the array

   int a[MAX],i;

   //for loop to access the elements from user

   for(i=0;i<MAX;i++)

   {

      printf("\n Enter a number to a[%d]",i+1);

      scanf("%d",&a[i]);

  }

  //display the input elements

  printf("\n The array elements are :");

  for(i=0;i<=MAX;i++)

  printf(" %d ",a[i]);

}

Explanation:

PSEUDOCODE INPUTARRAY(A[MAX])

REPEAT FOR I EQUALS TO 1 TO MAX

PRINT “Enter a number to A[I]”

READ A[I]

[END OF LOOP]

REPEAT FOR I EQUALS TO 1 TO MAX

PRINT A[I]

[END OF LOOP]

RETURN

ALGORITHM

ALGORITHM PRINTARRAY(A[MAX])

REPEAT FOR I<=1 TO MAX

PRINT “Enter a number”

INPUT A[I]

[END OF LOOP]

REPEAT FOR I<=1 TO MAX

PRINT A[I]

[END OF LOOP]

6 0
3 years ago
What best describes the purpose of the Recycle Bin (Microsoft Windows) and Trash (Apple Mac) features?
frez [133]

Answer:

Used for if you accidentally delete something or if you later want to retrieve something.

7 0
3 years ago
Read 2 more answers
What can be designed to create annoying glitches or destoey data?...
daser333 [38]

WELL YOU ARE RIGHT its virus

hope it helps

3 0
4 years ago
Read 2 more answers
5. Which of the following features of Google Groups allows users to share notes and research with
dexar [7]

Answer: C) Real-time editing

Explanation: Real-time editing is when two or more people work on thesame document live and simultaneously, this means that each user is able to work on thesame piece of document right from their individual devices at the same time with automatic and instant merging of their individual input. Google uses this feature in Google docs; which allows one to share notes and research with other users allowing them to work on the document from their individual devices live and simultaneous.

8 0
3 years ago
Other questions:
  • Match each vocabulary word to its definition.
    8·1 answer
  • The Subset Sum problem is a generalization of the Knapsack problem. Group of answer choices True False g
    8·1 answer
  • What is the answers please
    10·1 answer
  • _____ allow you to resize a graphic using the mouse.
    5·2 answers
  • Jeanne writes a song, and Raul wants to perform
    6·2 answers
  • Your boss is very skeptical about the idea of storing his files up in the cloud rather
    8·1 answer
  • PrimeFactorization.java: Write a program that begins by reading in a series of positive integers on a single line of input and t
    12·1 answer
  • 3. How are you able to create photographs differently than 100 years ago?
    9·2 answers
  • I got a question in computer science I don't understand, can someone please help.​
    10·1 answer
  • What ribbon command on the home tab can you use to change a cell fill color automatically
    13·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!