+ 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

22nd Nov 2019, 1:08 PM
Oma Falk
Oma Falk - avatar
9 Answers
22nd Nov 2019, 1:15 PM
CĂ©pagrave
CĂ©pagrave - avatar
+ 5
You can also cheat a one-liner! https://code.sololearn.com/c7RZyV67WCkw/?ref=app
22nd Nov 2019, 1:46 PM
Satyam
+ 4
lambda x,gen=iter('eeeaeoeo'): Is the anonymous for: def function(x, gen=iter("eeeaeoeo")) : It's using a keyword argument.
22nd Nov 2019, 1:23 PM
CĂ©pagrave
CĂ©pagrave - avatar
+ 3
CĂ©pagrave exactly what I was looking for! 😅 but i dont really understand đŸ€”
22nd Nov 2019, 1:18 PM
Oma Falk
Oma Falk - avatar
+ 3
S. C. cheeeeeeeaating
22nd Nov 2019, 2:08 PM
Oma Falk
Oma Falk - avatar
22nd Nov 2019, 1:23 PM
Sebastian Keßler
Sebastian Keßler - avatar
+ 1
CĂ©pagrave ahhh now it is easy
22nd Nov 2019, 2:09 PM
Oma Falk
Oma Falk - avatar
+ 1
Many are the splendid ways... https://code.sololearn.com/cBQFzCAA8sj1
23rd Nov 2019, 12:02 AM
JoeSponge
JoeSponge - avatar
0
lol
23rd Nov 2019, 7:09 PM
Aslam Ilyasu
Aslam Ilyasu - avatar