17
Kostiantyn Tkachuk
Last seen 1 year ago
Member for 3 years, 1 month
Difficulty Normal
Initiation
Methods like append, insert, remove or sort that only modify the list have no return value printed – they return the default None. 1 This is a design principle for all mutable data structures in Python. Reference: docs.python.org
Replace First
6
23
0
Implementing what I saw in previuos tasks
End Zeros
16
3
4
string partion() is convinienet
Between Markers (simplified)
21
12
1
int(max(str(number)))
Max Digit
35
11
2
Simple and readable. Used someting i learnt form previous tasks solved by clever guys.
Remove All Before
46
9
0
I love recursion
Beginning Zeros
75
7
1
One line with re module and search()
All Upper I
93
7
0
46 symbols all() map() lambda
All the Same
105
8
0
Weird solution :), hope it is efficent when incoming set is huge
Nearest Value
118
0
0
re with findall() works
Count Digits
237
3
0
Readable logic
Split Pairs
729
0
0
just slicing
Correct Sentence
1370
0
0
Home
1.5 lines. Using what I learnt from checkio.org :)
Morse Decoder
12
17
3
Simplicity and Readability
Three Words
162
11
1
one line with find() and count()
Second Index
264
4
1
Inventing wheel
Backward Each Word
287
2
0
1.5 lines just to keep readibility
Split List
322
2
0
if time in range(600, 1801)
Sun Angle
325
3
0
just for loop - the only benefit is readibility :)
Popular Words
344
3
0
7 lines with brief comments
Sort Array by Element Frequency
443
2
1
nothing special
Days Between
445
4
1
62 symbols :)
Bigger Price
475
3
0
my first lamda functions inside
Between Markers
666
1
2
Clear but 17 lines :) with comments
Pawn Brotherhood
1275
1
0
Hope there is an easier solution :)
First Word
1494
0
0
pop() and append()
Non-unique Elements
1645
2
2
Electronic Station
4 lines with detailed explanation
Sort by Extension
20
10
0
57 symbols
Ascending List
28
9
1
intensively increased readibility :)
Acceptable Password VI
56
4
1
long one line :)
Acceptable Password IV
130
2
1
improved readibilty :)
Acceptable Password V
134
2
0
For loop + re.search
Words Order
171
2
3
re.search('\d', password)
Acceptable Password II
195
2
1
not not search('\d', password) with comments
Acceptable Password III
228
1
1
upper() strip() isdecimal()
All Upper II
243
1
1
Comments everywhere :)) 5 small sub functions; 10 lines of code for the main block
Similar Triangles
305
0
2
10 short lines; just built-in functions; and lots of comments :)
Brackets
335
3
0
2 lines
Surjection Strings
413
0
1
remove(), append(), replace() is mighty toolset :)))
Verify Anagrams
499
2
0
just built-in functions. Comments and explanations :))
Find Sequence
808
0
0
one line with reduce(), lambda, int(), str(),
Digits Multiplication
1125
1
0
mapping functions is cool :)
Boolean Algebra
1459
0
0
Scientific Expedition
1 line with sum() and join()
Sum by Type
22
9
0
highly readible plus 'walrus' operator. Easy, but for some reasons taking long time :))
Goes Right After
27
9
0
Aaaaaa ...... 16 lines :)). Commetns for each block.
The Hidden Word
75
4
0
Several lines with per-line comments. I like the task:)))
Striped Words
100
5
1
swapcase() and caps_flag
Caps Lock
126
2
0
one line, 105 symbols; agree - a bit lengthy :)))
Conversion from CamelCase
140
4
0
old way, most probaly not pythonic way, however it still works :)
Bird Language
378
3
0
Readible like a book :)))
Follow Instructions
436
0
0
2 lines; nothing special, but it works :)))
Conversion into CamelCase
575
0
0
Highly readible, Weird solution with lower(), lstrip(), and '.' :))
Time Converter (24h to 12h)
701
0
2
most ordinary, higly readable solution :))
Letter Queue
743
0
0
First
I Love Python!
1011
0
1
sorted with key parametr
Absolute Sorting
1434
1
1
nothing special plus set_monster :))
Pangram
1462
0
2
82 symbols of highly readible code :))
Common Words
2041
0
2
min and max, plus text_monster is presented :))
The Most Wanted Letter
2768
0
0
O'Reilly
25 symbols :)
Majority
21
11
1
insert() and pop()
Replace Last
25
11
2
60 symbols
Remove All After
66
5
0
love walrus operator
Chunk
71
3
1
-math.inf :)) just to start, plus extend() and slicing
Reverse Every Ascending
71
3
0
few lines with comments
Lightbulb Start Watching
86
1
0
Detailed Comments. 15 lines :)))
Lightbulb End Watching
93
0
0
58 symbols with lst.append('blabla') :)))
Compress List
114
3
0
Comments. Nothing excluisve :)))
Time Converter (12h to 24h)
116
3
0
10 lines ....AAAAaaa....must be better solution :)
How Deep
212
0
0
one line, 94 symbols, not easily readible :)
Lightbulb Intro
248
0
2
2 approaches: 1 - one line solution 2 - readable version, I call it human version :))
Median of Three
293
0
0
4 lines with builtins
Sort Except Zero
297
1
0
Recursion without additional function plus arithmetics with lists :))
Flatten a List
673
1
0
super readible 3 lines :)
Median
676
3
1
another First
Index Power
789
2
0
Incinerator
20-25 methods - just to try :)))
Army Battles
406
0
0
nothing special
The Warriors
792
0
0
Mine
super readible 3 lines :) with comments
Cut Sentence
93
2
1
COOL task!!! Weird_sort(), recursion, reduce(), add(). Comments. Lots of happiness passing verification :))
Bigger Together
103
0
0
54 symbols with detailed comments :))
Best Stock
162
5
1
2 if only :))
Fizz Buzz
1133
1
0
Ice Base
46 symbols :)
The Most Numbers
4232
0
1
GitHub
1 line - Double any; double list comprehension
The End of Other
213
2
0