CS 110 Lecture Notes - Lecture 11: Standard Streams

93 views1 pages
30 Apr 2016
Course
Professor

Document Summary

# return a new 2d list representing the transpose of the matrix represented. Note that the a need not have the same number of. # get the dimensions of matrix a. m = len(a) n = len(a[0]) # create an n-by-m matrix c with all elements initialized to 0. 0. c = stdarray. create2d(n, m, 0. 0) # fill in the elements of c such that c[i][j] = a[j][i]. for i in range(n): for j in range(m): c[i][j] = a[j][i] Reads an m-by-n matrix from standard input and.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents

Related Questions