2017-09-07 0:58 GMT+02:00 Karim <lemieli...@gmail.com>: > 2017-09-06 8:25 GMT+10:00 Riccardo Magliocchetti > <riccardo.magliocche...@gmail.com>: >> >> Nel primo caso per profili junior anni fa chiedevo tra le altre queste >> due: >> - quale linguaggi conosci di più e quanto bene da 1 a 10 >> - fizzbuzz in che linguaggio preferisci > > Fantastico, non conoscevo fizzbuzz. Ho provato a farlo e ho salvato la > faccia, allora ho proposto lo stesso esercizio sul gruppo facebook... > diciamo che ha acceso gli animi :D
E così parte il golfing sulla soluzione più breve. la mia è ("Fizz"*(not x%3)+"Buzz"*(not x%5) or x for x in itertools.count(1)) :P ㎝ -- |:**THE 🍺-WARE LICENSE** *(Revision ㊷)*: | <miron@🐍.it> wrote this mail. As long as you retain this | notice you can do whatever you want with this stuff. | If we meet some day, and you think this stuff is worth it, | you can buy me a 🍺 in return. —㎝ _______________________________________________ Python mailing list Python@lists.python.it https://lists.python.it/mailman/listinfo/python