+8

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. https://code.sololearn.com/c5Lw5eV26nOG/?ref=app

11/22/2019 1:08:18 PM

Oma Falk

9 Answers

New Answer

+9

Maybe like this ? https://code.sololearn.com/ctAFHqJ6Jqgp/?ref=app

+5

You can also cheat a one-liner! https://code.sololearn.com/c7RZyV67WCkw/?ref=app

+3

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

+3

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

+3

S. C. cheeeeeeeaating

+2

https://code.sololearn.com/cQ54PSNe9Mj0/?ref=app

+1

Cépagrave ahhh now it is easy

+1

Many are the splendid ways... https://code.sololearn.com/cBQFzCAA8sj1

0