Find an Online Tutor Now

Prachi K.

asked • 10/20/20

Write a python program

Write a python script to take two values as string (using raw_input) and convert it into a multiple lists which appears like matrix.

Sample string input: 3 5 

Sample O/P:       

[0, 0, 0, 0, 0] 

[0, 1, 2, 3, 4] 

[0, 2, 4, 6, 8] 

Sample string input: 5 5 

Sample O/P: 

[0, 0, 0, 0, 0 ] 

[0, 1, 2, 3, 4 ] 

[0, 2, 4, 6, 8 ] 

[0, 3, 6, 9, 12] 

[0, 4, 8, 12, 16] 

1 Expert Answer

By:

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.