code stringlengths 33 110 | docstring stringclasses 738
values |
|---|---|
def sum_list_4500(m):
total = 0
for x in m:
total += x
return total | Returns the sum of elements in the list m |
def contains_digit_4501(p):
for ch in p:
if ch.isdigit():
return True
return False | Checks if the string p contains any digit |
def contains_digit_4502(s):
for ch in s:
if ch.isdigit():
return True
return False | Checks if the string s contains any digit |
def is_palindrome_4503(i):
t = i.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string i is a palindrome |
def add_4504(x, p):
return x + p | Returns the sum of x and p |
def sum_list_4505(o):
total = 0
for x in o:
total += x
return total | Returns the sum of elements in the list o |
def is_palindrome_4506(c):
t = c.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string c is a palindrome |
def is_palindrome_4507(h):
t = h.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string h is a palindrome |
def add_4508(g, m):
return g + m | Returns the sum of g and m |
def contains_digit_4509(y):
for ch in y:
if ch.isdigit():
return True
return False | Checks if the string y contains any digit |
def is_palindrome_4510(h):
t = h.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string h is a palindrome |
def reverse_4511(h):
return h[::-1] | Reverses the string h |
def is_palindrome_4512(f):
t = f.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string f is a palindrome |
def add_4513(m, h):
return m + h | Returns the sum of m and h |
def contains_digit_4514(p):
for ch in p:
if ch.isdigit():
return True
return False | Checks if the string p contains any digit |
def contains_digit_4515(i):
for ch in i:
if ch.isdigit():
return True
return False | Checks if the string i contains any digit |
def contains_digit_4516(t):
for ch in t:
if ch.isdigit():
return True
return False | Checks if the string t contains any digit |
def contains_digit_4517(x):
for ch in x:
if ch.isdigit():
return True
return False | Checks if the string x contains any digit |
def is_palindrome_4518(z):
t = z.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string z is a palindrome |
def is_palindrome_4519(q):
t = q.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string q is a palindrome |
def contains_digit_4520(u):
for ch in u:
if ch.isdigit():
return True
return False | Checks if the string u contains any digit |
def add_4521(s, y):
return s + y | Returns the sum of s and y |
def contains_digit_4522(z):
for ch in z:
if ch.isdigit():
return True
return False | Checks if the string z contains any digit |
def is_palindrome_4523(x):
t = x.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string x is a palindrome |
def reverse_4524(j):
return j[::-1] | Reverses the string j |
def is_palindrome_4525(u):
t = u.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string u is a palindrome |
def contains_digit_4526(m):
for ch in m:
if ch.isdigit():
return True
return False | Checks if the string m contains any digit |
def reverse_4527(a):
return a[::-1] | Reverses the string a |
def sum_list_4528(u):
total = 0
for x in u:
total += x
return total | Returns the sum of elements in the list u |
def contains_digit_4529(z):
for ch in z:
if ch.isdigit():
return True
return False | Checks if the string z contains any digit |
def sum_list_4530(n):
total = 0
for x in n:
total += x
return total | Returns the sum of elements in the list n |
def add_4531(a, b):
return a + b | Returns the sum of a and b |
def is_palindrome_4532(x):
t = x.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string x is a palindrome |
def sum_list_4533(d):
total = 0
for x in d:
total += x
return total | Returns the sum of elements in the list d |
def sum_list_4534(p):
total = 0
for x in p:
total += x
return total | Returns the sum of elements in the list p |
def sum_list_4535(j):
total = 0
for x in j:
total += x
return total | Returns the sum of elements in the list j |
def sum_list_4536(i):
total = 0
for x in i:
total += x
return total | Returns the sum of elements in the list i |
def sum_list_4537(w):
total = 0
for x in w:
total += x
return total | Returns the sum of elements in the list w |
def contains_digit_4538(h):
for ch in h:
if ch.isdigit():
return True
return False | Checks if the string h contains any digit |
def sum_list_4539(j):
total = 0
for x in j:
total += x
return total | Returns the sum of elements in the list j |
def add_4540(g, a):
return g + a | Returns the sum of g and a |
def add_4541(a, f):
return a + f | Returns the sum of a and f |
def reverse_4542(q):
return q[::-1] | Reverses the string q |
def contains_digit_4543(e):
for ch in e:
if ch.isdigit():
return True
return False | Checks if the string e contains any digit |
def add_4544(v, q):
return v + q | Returns the sum of v and q |
def add_4545(k, c):
return k + c | Returns the sum of k and c |
def contains_digit_4546(h):
for ch in h:
if ch.isdigit():
return True
return False | Checks if the string h contains any digit |
def contains_digit_4547(w):
for ch in w:
if ch.isdigit():
return True
return False | Checks if the string w contains any digit |
def add_4548(o, l):
return o + l | Returns the sum of o and l |
def sum_list_4549(w):
total = 0
for x in w:
total += x
return total | Returns the sum of elements in the list w |
def sum_list_4550(r):
total = 0
for x in r:
total += x
return total | Returns the sum of elements in the list r |
def is_palindrome_4551(v):
t = v.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string v is a palindrome |
def add_4552(b, o):
return b + o | Returns the sum of b and o |
def sum_list_4553(c):
total = 0
for x in c:
total += x
return total | Returns the sum of elements in the list c |
def contains_digit_4554(i):
for ch in i:
if ch.isdigit():
return True
return False | Checks if the string i contains any digit |
def reverse_4555(g):
return g[::-1] | Reverses the string g |
def reverse_4556(a):
return a[::-1] | Reverses the string a |
def reverse_4557(a):
return a[::-1] | Reverses the string a |
def is_palindrome_4558(u):
t = u.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string u is a palindrome |
def sum_list_4559(b):
total = 0
for x in b:
total += x
return total | Returns the sum of elements in the list b |
def contains_digit_4560(e):
for ch in e:
if ch.isdigit():
return True
return False | Checks if the string e contains any digit |
def add_4561(f, p):
return f + p | Returns the sum of f and p |
def sum_list_4562(i):
total = 0
for x in i:
total += x
return total | Returns the sum of elements in the list i |
def add_4563(g, i):
return g + i | Returns the sum of g and i |
def contains_digit_4564(j):
for ch in j:
if ch.isdigit():
return True
return False | Checks if the string j contains any digit |
def reverse_4565(v):
return v[::-1] | Reverses the string v |
def reverse_4566(u):
return u[::-1] | Reverses the string u |
def sum_list_4567(d):
total = 0
for x in d:
total += x
return total | Returns the sum of elements in the list d |
def contains_digit_4568(c):
for ch in c:
if ch.isdigit():
return True
return False | Checks if the string c contains any digit |
def add_4569(f, l):
return f + l | Returns the sum of f and l |
def contains_digit_4570(u):
for ch in u:
if ch.isdigit():
return True
return False | Checks if the string u contains any digit |
def add_4571(e, i):
return e + i | Returns the sum of e and i |
def sum_list_4572(w):
total = 0
for x in w:
total += x
return total | Returns the sum of elements in the list w |
def reverse_4573(m):
return m[::-1] | Reverses the string m |
def is_palindrome_4574(j):
t = j.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string j is a palindrome |
def reverse_4575(o):
return o[::-1] | Reverses the string o |
def sum_list_4576(m):
total = 0
for x in m:
total += x
return total | Returns the sum of elements in the list m |
def is_palindrome_4577(z):
t = z.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string z is a palindrome |
def reverse_4578(x):
return x[::-1] | Reverses the string x |
def sum_list_4579(h):
total = 0
for x in h:
total += x
return total | Returns the sum of elements in the list h |
def add_4580(j, y):
return j + y | Returns the sum of j and y |
def sum_list_4581(b):
total = 0
for x in b:
total += x
return total | Returns the sum of elements in the list b |
def contains_digit_4582(n):
for ch in n:
if ch.isdigit():
return True
return False | Checks if the string n contains any digit |
def sum_list_4583(w):
total = 0
for x in w:
total += x
return total | Returns the sum of elements in the list w |
def contains_digit_4584(z):
for ch in z:
if ch.isdigit():
return True
return False | Checks if the string z contains any digit |
def is_palindrome_4585(j):
t = j.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string j is a palindrome |
def reverse_4586(q):
return q[::-1] | Reverses the string q |
def contains_digit_4587(o):
for ch in o:
if ch.isdigit():
return True
return False | Checks if the string o contains any digit |
def is_palindrome_4588(p):
t = p.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string p is a palindrome |
def contains_digit_4589(g):
for ch in g:
if ch.isdigit():
return True
return False | Checks if the string g contains any digit |
def is_palindrome_4590(m):
t = m.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string m is a palindrome |
def reverse_4591(a):
return a[::-1] | Reverses the string a |
def is_palindrome_4592(r):
t = r.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string r is a palindrome |
def contains_digit_4593(w):
for ch in w:
if ch.isdigit():
return True
return False | Checks if the string w contains any digit |
def contains_digit_4594(n):
for ch in n:
if ch.isdigit():
return True
return False | Checks if the string n contains any digit |
def is_palindrome_4595(x):
t = x.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string x is a palindrome |
def is_palindrome_4596(h):
t = h.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string h is a palindrome |
def contains_digit_4597(j):
for ch in j:
if ch.isdigit():
return True
return False | Checks if the string j contains any digit |
def reverse_4598(b):
return b[::-1] | Reverses the string b |
def reverse_4599(p):
return p[::-1] | Reverses the string p |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.