+ 1

Write a program in Python to print multiplication table using yield.

How to Solve it using yield?

26th Jun 2018, 2:56 PM
Shuvam Chatterjee
Shuvam Chatterjee - avatar
9 Antworten
+ 5
I rewrote it, basically the same, now with yield: https://code.sololearn.com/ca4WAtc87vsM/?ref=app
26th Jun 2018, 5:09 PM
Paul
Paul - avatar
+ 2
https://code.sololearn.com/ckhy04QYRWbz/?ref=app hope this was what you wanted
26th Jun 2018, 3:25 PM
Pulkit Kamboj
Pulkit Kamboj - avatar
+ 2
There was no room for yield (I used lambda): https://code.sololearn.com/cC3QYdKzBzf7/?ref=app
26th Jun 2018, 4:11 PM
Paul
Paul - avatar
+ 2
Thank you so much.
26th Jun 2018, 4:30 PM
Shuvam Chatterjee
Shuvam Chatterjee - avatar
+ 1
do you want it one down other or side by side. I have edited the code according to one down other.
26th Jun 2018, 4:02 PM
Pulkit Kamboj
Pulkit Kamboj - avatar
+ 1
why don't you try to solve it yourself ?
26th Jun 2018, 7:28 PM
Paweł Sidorkiewicz
Paweł Sidorkiewicz - avatar
0
Thanks but how to print say 1-10 multiplication table simultaneously?
26th Jun 2018, 3:49 PM
Shuvam Chatterjee
Shuvam Chatterjee - avatar
0
Sorry,but you have to use yield.That's the speciality of the question.
26th Jun 2018, 4:30 PM
Shuvam Chatterjee
Shuvam Chatterjee - avatar
0
That's better
26th Jun 2018, 5:15 PM
Shuvam Chatterjee
Shuvam Chatterjee - avatar