9
CaptCalculator
2 7 20
386/ 445
Troy Walters
Last seen 4 years ago
Member for 10 years, 4 months, 14 days
Difficulty Normal
Best reviews / Newest reviews
First-aminami1127
try, except continue not neccessary here. More
First_import re-VDKlykov
Nice work, but you can also do this in one line without importing the re library. More
First-Tarty
Good job. You can clean this up a bit. for word in words: if text.lower().find(word) != -1: words_found += 1 can be written more succinctly as: for word in words: if word in text.lower(): words_found += 1 More
First-RomanZhyvitski
Although your code works, it could be A LOT simpler. I would check out some of the other answers for some ideas as to how you can accomplish this more elegantly. More
First-Amachua
Nice work with the one-liner, but you can get rid of that ugly alphabet string using the .isupper() method. find_message=lambda t:''.join(l for l in t if l.isupper()) More
First-xiongbiao
Interesting use of leading indices! More
Index Power-zephchai
One line and its very clear and readable. Nice work! More
First-jon003
Nice. You can simplify this a bit. You don't need to make str(number) a list. A string is already an iterable. More
First-ceu9jo
Too confusing. You can implement this in a much cleaner and shorter way without a while loop. Also: range(0,len(seq)-1) == range(len(seq)-1) True You dont need the 0 More
First-Riddick
Nice, but you can do this without a for loop! More
First-AdamToth
Cool. Very similar to mine. Good idea to use endswith(), I forgot about that one. More
First-fariik
nice. you can use date(*date1) instead of parsing out the pieces yourself. More
First-patsweet
nice, but I don't think a Class is appropriate for this problem. What purpose would an instance of BooleanAlgebra class serve in OOP? More
First-melizzaryan
Nice, but you can do this without for loops and branching. More
Second-Hanna_Hofman
This works, but its super complicated. You can do this without any looping or branching. More
Trivial soln-dwurf
Nice. Wish I had thought of that. More
Not Optimal-BobSyris
Check out Python list comprehensions to do away with that nested for, if loop. More
First-i-aki-y
Short, and easily understood. Well done. More
First-patsweet
I like that you defined all the other coordinates in the __inti__ More
First-Slepice1
Well done with relatively few lines of code. Line 5 is is very long and I can't see all of it. Might want to break that up into several lines for readability. More
1
2