+ 2

How to print pattern side to each other (parallel for loops ) ?

expected output : * ***** ** **** *** *** **** ** ***** * My attempt : https://code.sololearn.com/cJAZ12S1nnN3/?ref=app

15th Aug 2021, 5:28 AM
Ratnapal Shende
Ratnapal Shende - avatar
3 Answers
+ 3
Ratnapal Shende This can be done very easily in Python using generators, take a look at this: https://code.sololearn.com/cET74X6ksU11/?ref=app
15th Aug 2021, 7:51 AM
Giorgos
+ 1
NotHuman well your code is good but what I want, to print patterns using my nested for loops.. I have patterns of ABCDEF..., Z so we can't use your logic to print all patterns.. what we need to find is that how to excute for loops parallely of each pattern and print output horizontaly..
15th Aug 2021, 5:54 AM
Ratnapal Shende
Ratnapal Shende - avatar
+ 1
Ratnapal Shende how does your abcdef... pattern looks like?
15th Aug 2021, 7:38 AM
Abhay
Abhay - avatar