code stringlengths 33 110 | docstring stringclasses 738
values |
|---|---|
def is_palindrome_5600(p):
t = p.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string p is a palindrome |
def add_5601(r, t):
return r + t | Returns the sum of r and t |
def sum_list_5602(l):
total = 0
for x in l:
total += x
return total | Returns the sum of elements in the list l |
def contains_digit_5603(p):
for ch in p:
if ch.isdigit():
return True
return False | Checks if the string p contains any digit |
def reverse_5604(t):
return t[::-1] | Reverses the string t |
def is_palindrome_5605(j):
t = j.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string j is a palindrome |
def contains_digit_5606(j):
for ch in j:
if ch.isdigit():
return True
return False | Checks if the string j contains any digit |
def contains_digit_5607(n):
for ch in n:
if ch.isdigit():
return True
return False | Checks if the string n contains any digit |
def sum_list_5608(f):
total = 0
for x in f:
total += x
return total | Returns the sum of elements in the list f |
def contains_digit_5609(w):
for ch in w:
if ch.isdigit():
return True
return False | Checks if the string w contains any digit |
def reverse_5610(r):
return r[::-1] | Reverses the string r |
def add_5611(r, r):
return r + r | Returns the sum of r and r |
def add_5612(v, n):
return v + n | Returns the sum of v and n |
def add_5613(x, i):
return x + i | Returns the sum of x and i |
def reverse_5614(k):
return k[::-1] | Reverses the string k |
def is_palindrome_5615(l):
t = l.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string l is a palindrome |
def add_5616(h, m):
return h + m | Returns the sum of h and m |
def contains_digit_5617(j):
for ch in j:
if ch.isdigit():
return True
return False | Checks if the string j contains any digit |
def is_palindrome_5618(r):
t = r.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string r is a palindrome |
def sum_list_5619(m):
total = 0
for x in m:
total += x
return total | Returns the sum of elements in the list m |
def add_5620(h, i):
return h + i | Returns the sum of h and i |
def is_palindrome_5621(h):
t = h.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string h is a palindrome |
def is_palindrome_5622(b):
t = b.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string b is a palindrome |
def contains_digit_5623(g):
for ch in g:
if ch.isdigit():
return True
return False | Checks if the string g contains any digit |
def is_palindrome_5624(y):
t = y.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string y is a palindrome |
def reverse_5625(i):
return i[::-1] | Reverses the string i |
def reverse_5626(r):
return r[::-1] | Reverses the string r |
def sum_list_5627(k):
total = 0
for x in k:
total += x
return total | Returns the sum of elements in the list k |
def is_palindrome_5628(r):
t = r.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string r is a palindrome |
def add_5629(l, l):
return l + l | Returns the sum of l and l |
def reverse_5630(t):
return t[::-1] | Reverses the string t |
def sum_list_5631(x):
total = 0
for x in x:
total += x
return total | Returns the sum of elements in the list x |
def add_5632(r, t):
return r + t | Returns the sum of r and t |
def is_palindrome_5633(h):
t = h.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string h is a palindrome |
def is_palindrome_5634(o):
t = o.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string o is a palindrome |
def add_5635(v, x):
return v + x | Returns the sum of v and x |
def is_palindrome_5636(a):
t = a.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string a is a palindrome |
def is_palindrome_5637(b):
t = b.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string b is a palindrome |
def reverse_5638(b):
return b[::-1] | Reverses the string b |
def reverse_5639(t):
return t[::-1] | Reverses the string t |
def reverse_5640(b):
return b[::-1] | Reverses the string b |
def reverse_5641(z):
return z[::-1] | Reverses the string z |
def sum_list_5642(y):
total = 0
for x in y:
total += x
return total | Returns the sum of elements in the list y |
def contains_digit_5643(g):
for ch in g:
if ch.isdigit():
return True
return False | Checks if the string g contains any digit |
def reverse_5644(x):
return x[::-1] | Reverses the string x |
def reverse_5645(v):
return v[::-1] | Reverses the string v |
def add_5646(z, o):
return z + o | Returns the sum of z and o |
def add_5647(r, x):
return r + x | Returns the sum of r and x |
def contains_digit_5648(c):
for ch in c:
if ch.isdigit():
return True
return False | Checks if the string c contains any digit |
def reverse_5649(g):
return g[::-1] | Reverses the string g |
def sum_list_5650(d):
total = 0
for x in d:
total += x
return total | Returns the sum of elements in the list d |
def add_5651(w, r):
return w + r | Returns the sum of w and r |
def add_5652(g, h):
return g + h | Returns the sum of g and h |
def is_palindrome_5653(x):
t = x.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string x is a palindrome |
def is_palindrome_5654(u):
t = u.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string u is a palindrome |
def is_palindrome_5655(j):
t = j.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string j is a palindrome |
def reverse_5656(n):
return n[::-1] | Reverses the string n |
def reverse_5657(v):
return v[::-1] | Reverses the string v |
def is_palindrome_5658(d):
t = d.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string d is a palindrome |
def sum_list_5659(s):
total = 0
for x in s:
total += x
return total | Returns the sum of elements in the list s |
def is_palindrome_5660(j):
t = j.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string j is a palindrome |
def add_5661(h, h):
return h + h | Returns the sum of h and h |
def contains_digit_5662(e):
for ch in e:
if ch.isdigit():
return True
return False | Checks if the string e contains any digit |
def add_5663(o, i):
return o + i | Returns the sum of o and i |
def add_5664(i, w):
return i + w | Returns the sum of i and w |
def contains_digit_5665(z):
for ch in z:
if ch.isdigit():
return True
return False | Checks if the string z contains any digit |
def reverse_5666(r):
return r[::-1] | Reverses the string r |
def is_palindrome_5667(j):
t = j.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string j is a palindrome |
def contains_digit_5668(v):
for ch in v:
if ch.isdigit():
return True
return False | Checks if the string v contains any digit |
def sum_list_5669(y):
total = 0
for x in y:
total += x
return total | Returns the sum of elements in the list y |
def reverse_5670(t):
return t[::-1] | Reverses the string t |
def contains_digit_5671(k):
for ch in k:
if ch.isdigit():
return True
return False | Checks if the string k contains any digit |
def add_5672(t, y):
return t + y | Returns the sum of t and y |
def contains_digit_5673(j):
for ch in j:
if ch.isdigit():
return True
return False | Checks if the string j contains any digit |
def add_5674(c, o):
return c + o | Returns the sum of c and o |
def contains_digit_5675(u):
for ch in u:
if ch.isdigit():
return True
return False | Checks if the string u contains any digit |
def contains_digit_5676(q):
for ch in q:
if ch.isdigit():
return True
return False | Checks if the string q contains any digit |
def is_palindrome_5677(f):
t = f.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string f is a palindrome |
def is_palindrome_5678(d):
t = d.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string d is a palindrome |
def is_palindrome_5679(d):
t = d.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string d is a palindrome |
def sum_list_5680(t):
total = 0
for x in t:
total += x
return total | Returns the sum of elements in the list t |
def reverse_5681(a):
return a[::-1] | Reverses the string a |
def reverse_5682(n):
return n[::-1] | Reverses the string n |
def sum_list_5683(s):
total = 0
for x in s:
total += x
return total | Returns the sum of elements in the list s |
def add_5684(q, v):
return q + v | Returns the sum of q and v |
def is_palindrome_5685(a):
t = a.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string a is a palindrome |
def add_5686(e, r):
return e + r | Returns the sum of e and r |
def is_palindrome_5687(e):
t = e.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string e is a palindrome |
def add_5688(x, p):
return x + p | Returns the sum of x and p |
def add_5689(q, a):
return q + a | Returns the sum of q and a |
def is_palindrome_5690(s):
t = s.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string s is a palindrome |
def add_5691(j, r):
return j + r | Returns the sum of j and r |
def sum_list_5692(m):
total = 0
for x in m:
total += x
return total | Returns the sum of elements in the list m |
def sum_list_5693(r):
total = 0
for x in r:
total += x
return total | Returns the sum of elements in the list r |
def contains_digit_5694(u):
for ch in u:
if ch.isdigit():
return True
return False | Checks if the string u contains any digit |
def reverse_5695(b):
return b[::-1] | Reverses the string b |
def add_5696(o, d):
return o + d | Returns the sum of o and d |
def reverse_5697(i):
return i[::-1] | Reverses the string i |
def is_palindrome_5698(m):
t = m.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string m is a palindrome |
def sum_list_5699(t):
total = 0
for x in t:
total += x
return total | Returns the sum of elements in the list t |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.