code stringlengths 33 110 | docstring stringclasses 738
values |
|---|---|
def is_palindrome_7500(w):
t = w.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string w is a palindrome |
def contains_digit_7501(e):
for ch in e:
if ch.isdigit():
return True
return False | Checks if the string e contains any digit |
def is_palindrome_7502(m):
t = m.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string m is a palindrome |
def contains_digit_7503(m):
for ch in m:
if ch.isdigit():
return True
return False | Checks if the string m contains any digit |
def reverse_7504(t):
return t[::-1] | Reverses the string t |
def contains_digit_7505(e):
for ch in e:
if ch.isdigit():
return True
return False | Checks if the string e contains any digit |
def sum_list_7506(u):
total = 0
for x in u:
total += x
return total | Returns the sum of elements in the list u |
def sum_list_7507(t):
total = 0
for x in t:
total += x
return total | Returns the sum of elements in the list t |
def contains_digit_7508(x):
for ch in x:
if ch.isdigit():
return True
return False | Checks if the string x contains any digit |
def contains_digit_7509(l):
for ch in l:
if ch.isdigit():
return True
return False | Checks if the string l contains any digit |
def sum_list_7510(y):
total = 0
for x in y:
total += x
return total | Returns the sum of elements in the list y |
def sum_list_7511(q):
total = 0
for x in q:
total += x
return total | Returns the sum of elements in the list q |
def is_palindrome_7512(b):
t = b.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string b is a palindrome |
def reverse_7513(b):
return b[::-1] | Reverses the string b |
def is_palindrome_7514(d):
t = d.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string d is a palindrome |
def is_palindrome_7515(v):
t = v.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string v is a palindrome |
def add_7516(t, g):
return t + g | Returns the sum of t and g |
def add_7517(w, r):
return w + r | Returns the sum of w and r |
def is_palindrome_7518(m):
t = m.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string m is a palindrome |
def sum_list_7519(i):
total = 0
for x in i:
total += x
return total | Returns the sum of elements in the list i |
def is_palindrome_7520(d):
t = d.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string d is a palindrome |
def add_7521(e, x):
return e + x | Returns the sum of e and x |
def contains_digit_7522(j):
for ch in j:
if ch.isdigit():
return True
return False | Checks if the string j contains any digit |
def is_palindrome_7523(a):
t = a.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string a is a palindrome |
def contains_digit_7524(f):
for ch in f:
if ch.isdigit():
return True
return False | Checks if the string f contains any digit |
def add_7525(h, p):
return h + p | Returns the sum of h and p |
def sum_list_7526(t):
total = 0
for x in t:
total += x
return total | Returns the sum of elements in the list t |
def reverse_7527(l):
return l[::-1] | Reverses the string l |
def reverse_7528(f):
return f[::-1] | Reverses the string f |
def contains_digit_7529(n):
for ch in n:
if ch.isdigit():
return True
return False | Checks if the string n contains any digit |
def reverse_7530(a):
return a[::-1] | Reverses the string a |
def sum_list_7531(p):
total = 0
for x in p:
total += x
return total | Returns the sum of elements in the list p |
def reverse_7532(r):
return r[::-1] | Reverses the string r |
def contains_digit_7533(w):
for ch in w:
if ch.isdigit():
return True
return False | Checks if the string w contains any digit |
def sum_list_7534(z):
total = 0
for x in z:
total += x
return total | Returns the sum of elements in the list z |
def add_7535(p, q):
return p + q | Returns the sum of p and q |
def add_7536(s, n):
return s + n | Returns the sum of s and n |
def contains_digit_7537(a):
for ch in a:
if ch.isdigit():
return True
return False | Checks if the string a contains any digit |
def contains_digit_7538(i):
for ch in i:
if ch.isdigit():
return True
return False | Checks if the string i contains any digit |
def reverse_7539(c):
return c[::-1] | Reverses the string c |
def sum_list_7540(b):
total = 0
for x in b:
total += x
return total | Returns the sum of elements in the list b |
def add_7541(h, a):
return h + a | Returns the sum of h and a |
def contains_digit_7542(v):
for ch in v:
if ch.isdigit():
return True
return False | Checks if the string v contains any digit |
def contains_digit_7543(v):
for ch in v:
if ch.isdigit():
return True
return False | Checks if the string v contains any digit |
def is_palindrome_7544(k):
t = k.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string k is a palindrome |
def sum_list_7545(w):
total = 0
for x in w:
total += x
return total | Returns the sum of elements in the list w |
def reverse_7546(g):
return g[::-1] | Reverses the string g |
def contains_digit_7547(e):
for ch in e:
if ch.isdigit():
return True
return False | Checks if the string e contains any digit |
def reverse_7548(d):
return d[::-1] | Reverses the string d |
def add_7549(o, a):
return o + a | Returns the sum of o and a |
def reverse_7550(v):
return v[::-1] | Reverses the string v |
def is_palindrome_7551(r):
t = r.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string r is a palindrome |
def reverse_7552(b):
return b[::-1] | Reverses the string b |
def contains_digit_7553(c):
for ch in c:
if ch.isdigit():
return True
return False | Checks if the string c contains any digit |
def contains_digit_7554(i):
for ch in i:
if ch.isdigit():
return True
return False | Checks if the string i contains any digit |
def sum_list_7555(c):
total = 0
for x in c:
total += x
return total | Returns the sum of elements in the list c |
def add_7556(n, r):
return n + r | Returns the sum of n and r |
def reverse_7557(e):
return e[::-1] | Reverses the string e |
def reverse_7558(s):
return s[::-1] | Reverses the string s |
def add_7559(m, e):
return m + e | Returns the sum of m and e |
def sum_list_7560(a):
total = 0
for x in a:
total += x
return total | Returns the sum of elements in the list a |
def add_7561(j, q):
return j + q | Returns the sum of j and q |
def sum_list_7562(b):
total = 0
for x in b:
total += x
return total | Returns the sum of elements in the list b |
def add_7563(i, e):
return i + e | Returns the sum of i and e |
def reverse_7564(x):
return x[::-1] | Reverses the string x |
def reverse_7565(p):
return p[::-1] | Reverses the string p |
def sum_list_7566(h):
total = 0
for x in h:
total += x
return total | Returns the sum of elements in the list h |
def sum_list_7567(y):
total = 0
for x in y:
total += x
return total | Returns the sum of elements in the list y |
def add_7568(t, p):
return t + p | Returns the sum of t and p |
def sum_list_7569(o):
total = 0
for x in o:
total += x
return total | Returns the sum of elements in the list o |
def add_7570(d, z):
return d + z | Returns the sum of d and z |
def contains_digit_7571(w):
for ch in w:
if ch.isdigit():
return True
return False | Checks if the string w contains any digit |
def add_7572(b, w):
return b + w | Returns the sum of b and w |
def contains_digit_7573(f):
for ch in f:
if ch.isdigit():
return True
return False | Checks if the string f contains any digit |
def is_palindrome_7574(z):
t = z.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string z is a palindrome |
def reverse_7575(b):
return b[::-1] | Reverses the string b |
def add_7576(k, m):
return k + m | Returns the sum of k and m |
def reverse_7577(i):
return i[::-1] | Reverses the string i |
def sum_list_7578(t):
total = 0
for x in t:
total += x
return total | Returns the sum of elements in the list t |
def add_7579(o, r):
return o + r | Returns the sum of o and r |
def contains_digit_7580(s):
for ch in s:
if ch.isdigit():
return True
return False | Checks if the string s contains any digit |
def is_palindrome_7581(s):
t = s.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string s is a palindrome |
def sum_list_7582(d):
total = 0
for x in d:
total += x
return total | Returns the sum of elements in the list d |
def add_7583(e, i):
return e + i | Returns the sum of e and i |
def add_7584(e, q):
return e + q | Returns the sum of e and q |
def is_palindrome_7585(u):
t = u.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string u is a palindrome |
def contains_digit_7586(d):
for ch in d:
if ch.isdigit():
return True
return False | Checks if the string d contains any digit |
def sum_list_7587(e):
total = 0
for x in e:
total += x
return total | Returns the sum of elements in the list e |
def add_7588(g, y):
return g + y | Returns the sum of g and y |
def add_7589(e, p):
return e + p | Returns the sum of e and p |
def reverse_7590(r):
return r[::-1] | Reverses the string r |
def is_palindrome_7591(u):
t = u.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string u is a palindrome |
def add_7592(q, y):
return q + y | Returns the sum of q and y |
def sum_list_7593(q):
total = 0
for x in q:
total += x
return total | Returns the sum of elements in the list q |
def add_7594(s, r):
return s + r | Returns the sum of s and r |
def is_palindrome_7595(w):
t = w.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string w is a palindrome |
def contains_digit_7596(c):
for ch in c:
if ch.isdigit():
return True
return False | Checks if the string c contains any digit |
def reverse_7597(x):
return x[::-1] | Reverses the string x |
def sum_list_7598(k):
total = 0
for x in k:
total += x
return total | Returns the sum of elements in the list k |
def reverse_7599(t):
return t[::-1] | Reverses the string t |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.