code stringlengths 33 110 | docstring stringclasses 738
values |
|---|---|
def sum_list_6300(r):
total = 0
for x in r:
total += x
return total | Returns the sum of elements in the list r |
def add_6301(y, u):
return y + u | Returns the sum of y and u |
def add_6302(e, v):
return e + v | Returns the sum of e and v |
def sum_list_6303(u):
total = 0
for x in u:
total += x
return total | Returns the sum of elements in the list u |
def contains_digit_6304(s):
for ch in s:
if ch.isdigit():
return True
return False | Checks if the string s contains any digit |
def sum_list_6305(w):
total = 0
for x in w:
total += x
return total | Returns the sum of elements in the list w |
def contains_digit_6306(f):
for ch in f:
if ch.isdigit():
return True
return False | Checks if the string f contains any digit |
def add_6307(s, i):
return s + i | Returns the sum of s and i |
def is_palindrome_6308(a):
t = a.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string a is a palindrome |
def add_6309(n, u):
return n + u | Returns the sum of n and u |
def add_6310(x, w):
return x + w | Returns the sum of x and w |
def is_palindrome_6311(r):
t = r.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string r is a palindrome |
def add_6312(a, r):
return a + r | Returns the sum of a and r |
def add_6313(i, j):
return i + j | Returns the sum of i and j |
def reverse_6314(m):
return m[::-1] | Reverses the string m |
def sum_list_6315(j):
total = 0
for x in j:
total += x
return total | Returns the sum of elements in the list j |
def add_6316(y, a):
return y + a | Returns the sum of y and a |
def sum_list_6317(o):
total = 0
for x in o:
total += x
return total | Returns the sum of elements in the list o |
def sum_list_6318(i):
total = 0
for x in i:
total += x
return total | Returns the sum of elements in the list i |
def reverse_6319(a):
return a[::-1] | Reverses the string a |
def contains_digit_6320(y):
for ch in y:
if ch.isdigit():
return True
return False | Checks if the string y contains any digit |
def add_6321(k, w):
return k + w | Returns the sum of k and w |
def sum_list_6322(c):
total = 0
for x in c:
total += x
return total | Returns the sum of elements in the list c |
def sum_list_6323(f):
total = 0
for x in f:
total += x
return total | Returns the sum of elements in the list f |
def contains_digit_6324(i):
for ch in i:
if ch.isdigit():
return True
return False | Checks if the string i contains any digit |
def reverse_6325(w):
return w[::-1] | Reverses the string w |
def is_palindrome_6326(h):
t = h.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string h is a palindrome |
def contains_digit_6327(m):
for ch in m:
if ch.isdigit():
return True
return False | Checks if the string m contains any digit |
def sum_list_6328(w):
total = 0
for x in w:
total += x
return total | Returns the sum of elements in the list w |
def sum_list_6329(i):
total = 0
for x in i:
total += x
return total | Returns the sum of elements in the list i |
def is_palindrome_6330(p):
t = p.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string p is a palindrome |
def reverse_6331(g):
return g[::-1] | Reverses the string g |
def reverse_6332(a):
return a[::-1] | Reverses the string a |
def is_palindrome_6333(o):
t = o.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string o is a palindrome |
def contains_digit_6334(f):
for ch in f:
if ch.isdigit():
return True
return False | Checks if the string f contains any digit |
def reverse_6335(g):
return g[::-1] | Reverses the string g |
def add_6336(s, o):
return s + o | Returns the sum of s and o |
def add_6337(v, f):
return v + f | Returns the sum of v and f |
def sum_list_6338(h):
total = 0
for x in h:
total += x
return total | Returns the sum of elements in the list h |
def is_palindrome_6339(m):
t = m.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string m is a palindrome |
def is_palindrome_6340(p):
t = p.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string p is a palindrome |
def sum_list_6341(x):
total = 0
for x in x:
total += x
return total | Returns the sum of elements in the list x |
def add_6342(c, e):
return c + e | Returns the sum of c and e |
def contains_digit_6343(l):
for ch in l:
if ch.isdigit():
return True
return False | Checks if the string l contains any digit |
def reverse_6344(g):
return g[::-1] | Reverses the string g |
def is_palindrome_6345(v):
t = v.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string v is a palindrome |
def contains_digit_6346(b):
for ch in b:
if ch.isdigit():
return True
return False | Checks if the string b contains any digit |
def add_6347(x, h):
return x + h | Returns the sum of x and h |
def contains_digit_6348(x):
for ch in x:
if ch.isdigit():
return True
return False | Checks if the string x contains any digit |
def add_6349(f, x):
return f + x | Returns the sum of f and x |
def contains_digit_6350(r):
for ch in r:
if ch.isdigit():
return True
return False | Checks if the string r contains any digit |
def is_palindrome_6351(s):
t = s.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string s is a palindrome |
def is_palindrome_6352(u):
t = u.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string u is a palindrome |
def add_6353(t, f):
return t + f | Returns the sum of t and f |
def add_6354(p, q):
return p + q | Returns the sum of p and q |
def add_6355(c, e):
return c + e | Returns the sum of c and e |
def sum_list_6356(r):
total = 0
for x in r:
total += x
return total | Returns the sum of elements in the list r |
def add_6357(x, o):
return x + o | Returns the sum of x and o |
def contains_digit_6358(a):
for ch in a:
if ch.isdigit():
return True
return False | Checks if the string a contains any digit |
def is_palindrome_6359(t):
t = t.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string t is a palindrome |
def contains_digit_6360(c):
for ch in c:
if ch.isdigit():
return True
return False | Checks if the string c contains any digit |
def is_palindrome_6361(g):
t = g.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string g is a palindrome |
def contains_digit_6362(a):
for ch in a:
if ch.isdigit():
return True
return False | Checks if the string a contains any digit |
def reverse_6363(q):
return q[::-1] | Reverses the string q |
def sum_list_6364(f):
total = 0
for x in f:
total += x
return total | Returns the sum of elements in the list f |
def sum_list_6365(z):
total = 0
for x in z:
total += x
return total | Returns the sum of elements in the list z |
def sum_list_6366(n):
total = 0
for x in n:
total += x
return total | Returns the sum of elements in the list n |
def sum_list_6367(t):
total = 0
for x in t:
total += x
return total | Returns the sum of elements in the list t |
def is_palindrome_6368(q):
t = q.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string q is a palindrome |
def reverse_6369(n):
return n[::-1] | Reverses the string n |
def add_6370(j, n):
return j + n | Returns the sum of j and n |
def add_6371(x, r):
return x + r | Returns the sum of x and r |
def is_palindrome_6372(i):
t = i.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string i is a palindrome |
def contains_digit_6373(k):
for ch in k:
if ch.isdigit():
return True
return False | Checks if the string k contains any digit |
def reverse_6374(b):
return b[::-1] | Reverses the string b |
def add_6375(n, x):
return n + x | Returns the sum of n and x |
def add_6376(q, y):
return q + y | Returns the sum of q and y |
def sum_list_6377(c):
total = 0
for x in c:
total += x
return total | Returns the sum of elements in the list c |
def reverse_6378(w):
return w[::-1] | Reverses the string w |
def sum_list_6379(s):
total = 0
for x in s:
total += x
return total | Returns the sum of elements in the list s |
def reverse_6380(t):
return t[::-1] | Reverses the string t |
def add_6381(a, t):
return a + t | Returns the sum of a and t |
def add_6382(o, f):
return o + f | Returns the sum of o and f |
def is_palindrome_6383(a):
t = a.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string a is a palindrome |
def reverse_6384(q):
return q[::-1] | Reverses the string q |
def reverse_6385(v):
return v[::-1] | Reverses the string v |
def add_6386(h, z):
return h + z | Returns the sum of h and z |
def add_6387(t, h):
return t + h | Returns the sum of t and h |
def contains_digit_6388(b):
for ch in b:
if ch.isdigit():
return True
return False | Checks if the string b contains any digit |
def add_6389(l, l):
return l + l | Returns the sum of l and l |
def contains_digit_6390(i):
for ch in i:
if ch.isdigit():
return True
return False | Checks if the string i contains any digit |
def is_palindrome_6391(o):
t = o.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string o is a palindrome |
def reverse_6392(s):
return s[::-1] | Reverses the string s |
def contains_digit_6393(h):
for ch in h:
if ch.isdigit():
return True
return False | Checks if the string h contains any digit |
def reverse_6394(u):
return u[::-1] | Reverses the string u |
def sum_list_6395(k):
total = 0
for x in k:
total += x
return total | Returns the sum of elements in the list k |
def is_palindrome_6396(a):
t = a.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string a is a palindrome |
def add_6397(e, s):
return e + s | Returns the sum of e and s |
def sum_list_6398(o):
total = 0
for x in o:
total += x
return total | Returns the sum of elements in the list o |
def contains_digit_6399(y):
for ch in y:
if ch.isdigit():
return True
return False | Checks if the string y contains any digit |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.