9
emato rose πΊπΈπΊπ¦
Last seen 1 year ago
Member for 9 years, 9 months, 13 days
Difficulty Normal
Learning Python to help with my hobby of classical cryptanalysis. I am an artist, avid gamer and old enough to be somebody's grandmother! :-)
I wish I knew what you knew! I spent hours just trying to get rid of my brackets!!! Let alone the miles of line of code to make it work. I love this site and your, sir, are a great teacher!
More
I did same after spending long time searching for where "reduce" was hiding! :-)
More
I thought about doing it this way but opted for one def. I like this, it is so clear and nice.
More
Great comments and I really liked the method. Thanks for posting this - I have learned from it.
More
Your solution is, of course very great! - however, I am wondering if it is ok to change the given info? I mean, of course it is --- but should it be ok? Just curious. I have always been going on that we had to use the was the given info was given. But at any rate, your solution (as usual!) is gre
More
Missed using .replace --- went though the whole .split/.join bit ! Thanks for posting! Great code!
More
It was made very complex but I learned a lot from reading your code. Taking the class approach - scary to me - but I understand how you made it work. A good lesson for me.'
More
Thank you, I will look into it. I'm pretty new to Python and programming in general. Appreciate the suggestions!
More
I think I understand now:
if args:
return max(args) - min(args)
else:
return 0
More
Thank you for pointing that out! I only learned the first way - what you showed makes lots of sense. Also I think this follows mypy https://mail.python.org/pipermail/python-ideas/2014-August/028618.html
More
I tried doing this with the Counter and I could not get rid of my []s.
Good solve!
More
Ahh! So that's how to use Counter in this case! I couldn't get it to work for me.
Glad you published this.
More
Please explain the areas_fct part? If the order changed, would things mess up? I don't understand and want to. thank you
More
I forgot to change two things before publishing: import - should only be pi, sqrt and for triangle, I wanted to # Heron's formula.
More