44
jcg
8 20 34
15238/ 15612
Jean-Claude GEORGES
Last seen 1 month ago
Member for 11 years, 5 months, 22 days
Class esiee_test
Best reviews / Newest reviews
First-pheromo 1 1
I'm sorry, but on my computer with Python 3.3, the simplest program def checkio_1(*args): # simplest and fastest # two builtin loops # (max an min) are faster # than one explicit loop if len(args)==0 : return 0 else : return max(arg More
First-jcg
We can differentiate the three area functions using the number of parameters : one parameter is for circle, two for rectangle and three for triangle. So I create the tuple **area\_fct** with the three functions, and I call **area\_fct[i]** with **i** equals to the number of args minus one. For insta More
Maksimochkin-PMaksimochkin
Sorry but your program doesn't work for 110, 210, ... 910 You missed the case if int(str1[1])==1: part2=' ten' before the line 53. It's too dangerous to program with copy/paste lines and miss one CtrlC/CtrlV. Using lists like this : tens = ["","ten", "twenty", "thirty", "forty", "fifty" More