How can I make it a oneliner? | SoloLearn: Learn to code for FREE!


How can I make it a oneliner?

in the following code line3 make the music. I can easily integrate line1 into it. But how to integrate line2? next(iter(eeaeuou)) will fail.

11/22/2019 1:08:18 PM

Oma Falk

9 Answers

New Answer


Maybe like this ?


You can also cheat a one-liner!


lambda x,gen=iter('eeeaeoeo'): Is the anonymous for: def function(x, gen=iter("eeeaeoeo")) : It's using a keyword argument.


Cépagrave exactly what I was looking for! 😅 but i dont really understand 🤔


S. C. cheeeeeeeaating



Cépagrave ahhh now it is easy


Many are the splendid ways...