14
grifaaan
2 10 29
893/ 945
Григорий Семикин
Last seen 1 year ago
Member for 7 years, 1 month, 12 days
Difficulty Easy
Best reviews / Newest reviews
"All Upper I"-Mateusz_Wryszcz 1
The first if condition is extra here. Your solution will work fine without it More
days of abs of timedelta-jakubbortlik 1
I used **a[0],a[1],a[2]**, but usage * its more "pythonic" code-style. I would keep it in mind for futher tasks. More
First-Sim0000 1
I'm looking for this solution and understanding how much I have to learn. Cool! Thanks More
Based on slicing-grifaaan
It definatelly could be simplificated, but not now... More
First-115141
I see ;) I coped with this task via: numpy.prod([int(num) for num in str(number) if num != "0"]) But your solution is better! At least, you don't need import numpy package GG! More
One more "first" solution-Kolia951 1
Hi! Regex is POWER! :) By the way, line 12 seems redandant More
First-maga25163
Construction like: datetime.date(a[0], a[1], a[2]) could be shortened to: datetime.date(*a) Also you coud get rid of .date via importing only **date **note hole **datetime** package. I mean: from datetime import date More
First-Pampam0
each if condition has replace white spaces. The task description says: **_If the string is empty or doesn't have any letter in it - function should return True._** So, I would suggest to add any upper case letter and check text by isupper(): text+="A" return text.isupper() More