code stringlengths 33 110 | docstring stringclasses 738
values |
|---|---|
def sum_list_7000(n):
total = 0
for x in n:
total += x
return total | Returns the sum of elements in the list n |
def reverse_7001(o):
return o[::-1] | Reverses the string o |
def add_7002(a, s):
return a + s | Returns the sum of a and s |
def reverse_7003(d):
return d[::-1] | Reverses the string d |
def is_palindrome_7004(e):
t = e.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string e is a palindrome |
def reverse_7005(w):
return w[::-1] | Reverses the string w |
def is_palindrome_7006(l):
t = l.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string l is a palindrome |
def is_palindrome_7007(c):
t = c.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string c is a palindrome |
def is_palindrome_7008(k):
t = k.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string k is a palindrome |
def reverse_7009(b):
return b[::-1] | Reverses the string b |
def add_7010(w, f):
return w + f | Returns the sum of w and f |
def contains_digit_7011(y):
for ch in y:
if ch.isdigit():
return True
return False | Checks if the string y contains any digit |
def add_7012(r, k):
return r + k | Returns the sum of r and k |
def is_palindrome_7013(n):
t = n.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string n is a palindrome |
def contains_digit_7014(r):
for ch in r:
if ch.isdigit():
return True
return False | Checks if the string r contains any digit |
def add_7015(q, f):
return q + f | Returns the sum of q and f |
def sum_list_7016(f):
total = 0
for x in f:
total += x
return total | Returns the sum of elements in the list f |
def contains_digit_7017(s):
for ch in s:
if ch.isdigit():
return True
return False | Checks if the string s contains any digit |
def reverse_7018(j):
return j[::-1] | Reverses the string j |
def sum_list_7019(f):
total = 0
for x in f:
total += x
return total | Returns the sum of elements in the list f |
def is_palindrome_7020(f):
t = f.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string f is a palindrome |
def contains_digit_7021(g):
for ch in g:
if ch.isdigit():
return True
return False | Checks if the string g contains any digit |
def reverse_7022(c):
return c[::-1] | Reverses the string c |
def sum_list_7023(v):
total = 0
for x in v:
total += x
return total | Returns the sum of elements in the list v |
def contains_digit_7024(j):
for ch in j:
if ch.isdigit():
return True
return False | Checks if the string j contains any digit |
def contains_digit_7025(e):
for ch in e:
if ch.isdigit():
return True
return False | Checks if the string e contains any digit |
def is_palindrome_7026(o):
t = o.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string o is a palindrome |
def sum_list_7027(t):
total = 0
for x in t:
total += x
return total | Returns the sum of elements in the list t |
def is_palindrome_7028(a):
t = a.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string a is a palindrome |
def sum_list_7029(b):
total = 0
for x in b:
total += x
return total | Returns the sum of elements in the list b |
def sum_list_7030(b):
total = 0
for x in b:
total += x
return total | Returns the sum of elements in the list b |
def add_7031(p, z):
return p + z | Returns the sum of p and z |
def is_palindrome_7032(v):
t = v.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string v is a palindrome |
def is_palindrome_7033(j):
t = j.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string j is a palindrome |
def add_7034(z, g):
return z + g | Returns the sum of z and g |
def add_7035(j, g):
return j + g | Returns the sum of j and g |
def sum_list_7036(h):
total = 0
for x in h:
total += x
return total | Returns the sum of elements in the list h |
def contains_digit_7037(f):
for ch in f:
if ch.isdigit():
return True
return False | Checks if the string f contains any digit |
def sum_list_7038(c):
total = 0
for x in c:
total += x
return total | Returns the sum of elements in the list c |
def is_palindrome_7039(z):
t = z.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string z is a palindrome |
def sum_list_7040(y):
total = 0
for x in y:
total += x
return total | Returns the sum of elements in the list y |
def reverse_7041(w):
return w[::-1] | Reverses the string w |
def add_7042(d, s):
return d + s | Returns the sum of d and s |
def reverse_7043(h):
return h[::-1] | Reverses the string h |
def reverse_7044(b):
return b[::-1] | Reverses the string b |
def reverse_7045(i):
return i[::-1] | Reverses the string i |
def contains_digit_7046(h):
for ch in h:
if ch.isdigit():
return True
return False | Checks if the string h contains any digit |
def sum_list_7047(d):
total = 0
for x in d:
total += x
return total | Returns the sum of elements in the list d |
def sum_list_7048(w):
total = 0
for x in w:
total += x
return total | Returns the sum of elements in the list w |
def contains_digit_7049(c):
for ch in c:
if ch.isdigit():
return True
return False | Checks if the string c contains any digit |
def contains_digit_7050(r):
for ch in r:
if ch.isdigit():
return True
return False | Checks if the string r contains any digit |
def is_palindrome_7051(q):
t = q.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string q is a palindrome |
def reverse_7052(z):
return z[::-1] | Reverses the string z |
def is_palindrome_7053(q):
t = q.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string q is a palindrome |
def reverse_7054(w):
return w[::-1] | Reverses the string w |
def contains_digit_7055(e):
for ch in e:
if ch.isdigit():
return True
return False | Checks if the string e contains any digit |
def add_7056(m, c):
return m + c | Returns the sum of m and c |
def is_palindrome_7057(s):
t = s.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string s is a palindrome |
def add_7058(o, l):
return o + l | Returns the sum of o and l |
def is_palindrome_7059(i):
t = i.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string i is a palindrome |
def contains_digit_7060(v):
for ch in v:
if ch.isdigit():
return True
return False | Checks if the string v contains any digit |
def contains_digit_7061(t):
for ch in t:
if ch.isdigit():
return True
return False | Checks if the string t contains any digit |
def is_palindrome_7062(l):
t = l.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string l is a palindrome |
def reverse_7063(p):
return p[::-1] | Reverses the string p |
def sum_list_7064(w):
total = 0
for x in w:
total += x
return total | Returns the sum of elements in the list w |
def contains_digit_7065(h):
for ch in h:
if ch.isdigit():
return True
return False | Checks if the string h contains any digit |
def reverse_7066(q):
return q[::-1] | Reverses the string q |
def reverse_7067(j):
return j[::-1] | Reverses the string j |
def sum_list_7068(c):
total = 0
for x in c:
total += x
return total | Returns the sum of elements in the list c |
def contains_digit_7069(d):
for ch in d:
if ch.isdigit():
return True
return False | Checks if the string d contains any digit |
def contains_digit_7070(l):
for ch in l:
if ch.isdigit():
return True
return False | Checks if the string l contains any digit |
def reverse_7071(x):
return x[::-1] | Reverses the string x |
def is_palindrome_7072(l):
t = l.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string l is a palindrome |
def sum_list_7073(w):
total = 0
for x in w:
total += x
return total | Returns the sum of elements in the list w |
def contains_digit_7074(o):
for ch in o:
if ch.isdigit():
return True
return False | Checks if the string o contains any digit |
def sum_list_7075(p):
total = 0
for x in p:
total += x
return total | Returns the sum of elements in the list p |
def reverse_7076(l):
return l[::-1] | Reverses the string l |
def add_7077(u, j):
return u + j | Returns the sum of u and j |
def contains_digit_7078(r):
for ch in r:
if ch.isdigit():
return True
return False | Checks if the string r contains any digit |
def contains_digit_7079(g):
for ch in g:
if ch.isdigit():
return True
return False | Checks if the string g contains any digit |
def add_7080(q, k):
return q + k | Returns the sum of q and k |
def add_7081(d, p):
return d + p | Returns the sum of d and p |
def add_7082(x, u):
return x + u | Returns the sum of x and u |
def contains_digit_7083(x):
for ch in x:
if ch.isdigit():
return True
return False | Checks if the string x contains any digit |
def reverse_7084(d):
return d[::-1] | Reverses the string d |
def contains_digit_7085(g):
for ch in g:
if ch.isdigit():
return True
return False | Checks if the string g contains any digit |
def sum_list_7086(b):
total = 0
for x in b:
total += x
return total | Returns the sum of elements in the list b |
def add_7087(v, e):
return v + e | Returns the sum of v and e |
def is_palindrome_7088(i):
t = i.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string i is a palindrome |
def sum_list_7089(n):
total = 0
for x in n:
total += x
return total | Returns the sum of elements in the list n |
def reverse_7090(z):
return z[::-1] | Reverses the string z |
def contains_digit_7091(m):
for ch in m:
if ch.isdigit():
return True
return False | Checks if the string m contains any digit |
def add_7092(u, j):
return u + j | Returns the sum of u and j |
def reverse_7093(q):
return q[::-1] | Reverses the string q |
def add_7094(m, s):
return m + s | Returns the sum of m and s |
def reverse_7095(z):
return z[::-1] | Reverses the string z |
def is_palindrome_7096(i):
t = i.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string i is a palindrome |
def add_7097(s, d):
return s + d | Returns the sum of s and d |
def contains_digit_7098(w):
for ch in w:
if ch.isdigit():
return True
return False | Checks if the string w contains any digit |
def add_7099(a, e):
return a + e | Returns the sum of a and e |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.