Compare commits
No commits in common. "a9ea2a43df563cf826210c55d84f513207fae5e8" and "f9a07bc96c0f342767c09157606ebb16ad7841e5" have entirely different histories.
a9ea2a43df
...
f9a07bc96c
@ -1,13 +0,0 @@
|
||||
def likes(names):
|
||||
length = len(names)
|
||||
for i in range(4):
|
||||
names.append("")
|
||||
|
||||
text = [
|
||||
"no one likes this",
|
||||
names[0] + " likes this",
|
||||
names[0] + " and " + names[1] + " like this",
|
||||
names[0] + ", " + names[1] + " and " + names[2] + " like this",
|
||||
names[0] + ", " + names[1] + " and " + str(length - 2) + " others like this",
|
||||
]
|
||||
return text[length - (length > 3) * (length - 4)]
|
||||
Loading…
x
Reference in New Issue
Block a user