Skip to content

Instantly share code, notes, and snippets.

View rainshen49's full-sized avatar

Lingkai Shen rainshen49

  • Google
  • Toronto, Canada
View GitHub Profile
def minimum_candidate_filter(l):
return [n for n in l if int(n**.5)**2==n and str(n)==str(n)[::-1]]
def func(s):
return f"!{'!'.join(f'{c}!{c}' for c in s)}!"
def func2():
c=lambda s:", ".join([s]*5)
s="shake"
p="play"
h="hate"
o=", ".join([f"I {s} it off"]*2)
g=" gonna "