subject

(PYTHON CODING HELP) 7.12 LAB: Table storage The code below creates a table of 3 rows and 5 columns as a nested list. Print it in the tabular for shown below. You can access individual elements of my_list using bracket notation, as my_list[row][column]. (You can assume there are always 5 numbers in the input and that the numbers in the table will have at most two digits.).

Test Input is
1 2 3 4 5

Output is
1| 2| 3| 4| 5
2| 4| 6| 8|10
3| 6| 9|12|15

row1 = [1*int(i) for i in input().split()]
row2 = [2*i for i in row1]
row3 = [3*i for i in row1]

my_list = [row1, row2, row3]
#Type code here

ansver
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 08:00, dustysorrells74
Someone with this coz i don’t really know what i can choose, just pick whatever u want. homework - you need to choose a website that you like or use frequently. you must visit the website and discuss 6 different features/parts/aspects of the website that you think makes it good. (100 words)
Answers: 2
image
Computers and Technology, 23.06.2019 01:20, sosick90501
Write a function balancechemical to balance chemical reactions by solving a linear set of equations. the inputs arguments are: reagents: symbols of reagents in string row array products: symbols of products in string row array elements: elements in the reaction in string row array elcmpreag: elemental composition of reactants in two dimensional numeric array elcmpprdcts: elemental composition of prducts in two dimensional numeric array hint: the first part of the problem is setting up the set of linear equations that should be solve. the second part of the problem is to find the integers from the solution. one way to do this is to mulitiply the rational basis for the nullspace by increasing larger integers until both the left-and right-side integers exist. for example, for the reaction that involves reacting with to produce and : reagents=["ch4", "o2"]; products =["co2", "h2o"]; elements =["c","h", "o"] elcmpreag=[1,4,0;
Answers: 3
image
Computers and Technology, 23.06.2019 06:40, euniceyi56
How many nibbles can be stored in a 16-bit word?
Answers: 1
image
Computers and Technology, 23.06.2019 09:30, ranmmm
The place where the extended axis of the earth would touch the celestial sphere is called the celestial
Answers: 1
You know the right answer?
(PYTHON CODING HELP) 7.12 LAB: Table storage The code below creates a table of 3 rows and 5 column...

Questions in other subjects:

Konu
Mathematics, 04.06.2020 16:57
Konu
Mathematics, 04.06.2020 16:57
Konu
Mathematics, 04.06.2020 16:57
Konu
Mathematics, 04.06.2020 16:57