code stringlengths 33 110 | docstring stringclasses 738
values |
|---|---|
def sum_list_5100(g):
total = 0
for x in g:
total += x
return total | Returns the sum of elements in the list g |
def reverse_5101(v):
return v[::-1] | Reverses the string v |
def add_5102(o, p):
return o + p | Returns the sum of o and p |
def is_palindrome_5103(b):
t = b.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string b is a palindrome |
def sum_list_5104(e):
total = 0
for x in e:
total += x
return total | Returns the sum of elements in the list e |
def contains_digit_5105(u):
for ch in u:
if ch.isdigit():
return True
return False | Checks if the string u contains any digit |
def sum_list_5106(p):
total = 0
for x in p:
total += x
return total | Returns the sum of elements in the list p |
def contains_digit_5107(l):
for ch in l:
if ch.isdigit():
return True
return False | Checks if the string l contains any digit |
def add_5108(d, u):
return d + u | Returns the sum of d and u |
def contains_digit_5109(g):
for ch in g:
if ch.isdigit():
return True
return False | Checks if the string g contains any digit |
def is_palindrome_5110(g):
t = g.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string g is a palindrome |
def sum_list_5111(x):
total = 0
for x in x:
total += x
return total | Returns the sum of elements in the list x |
def add_5112(x, f):
return x + f | Returns the sum of x and f |
def add_5113(m, l):
return m + l | Returns the sum of m and l |
def is_palindrome_5114(u):
t = u.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string u is a palindrome |
def add_5115(p, m):
return p + m | Returns the sum of p and m |
def contains_digit_5116(c):
for ch in c:
if ch.isdigit():
return True
return False | Checks if the string c contains any digit |
def contains_digit_5117(n):
for ch in n:
if ch.isdigit():
return True
return False | Checks if the string n contains any digit |
def contains_digit_5118(j):
for ch in j:
if ch.isdigit():
return True
return False | Checks if the string j contains any digit |
def sum_list_5119(t):
total = 0
for x in t:
total += x
return total | Returns the sum of elements in the list t |
def sum_list_5120(w):
total = 0
for x in w:
total += x
return total | Returns the sum of elements in the list w |
def add_5121(s, v):
return s + v | Returns the sum of s and v |
def is_palindrome_5122(y):
t = y.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string y is a palindrome |
def is_palindrome_5123(l):
t = l.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string l is a palindrome |
def sum_list_5124(j):
total = 0
for x in j:
total += x
return total | Returns the sum of elements in the list j |
def reverse_5125(c):
return c[::-1] | Reverses the string c |
def is_palindrome_5126(c):
t = c.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string c is a palindrome |
def is_palindrome_5127(m):
t = m.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string m is a palindrome |
def sum_list_5128(y):
total = 0
for x in y:
total += x
return total | Returns the sum of elements in the list y |
def sum_list_5129(l):
total = 0
for x in l:
total += x
return total | Returns the sum of elements in the list l |
def reverse_5130(q):
return q[::-1] | Reverses the string q |
def add_5131(q, f):
return q + f | Returns the sum of q and f |
def add_5132(w, e):
return w + e | Returns the sum of w and e |
def is_palindrome_5133(c):
t = c.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string c is a palindrome |
def reverse_5134(i):
return i[::-1] | Reverses the string i |
def contains_digit_5135(t):
for ch in t:
if ch.isdigit():
return True
return False | Checks if the string t contains any digit |
def add_5136(m, i):
return m + i | Returns the sum of m and i |
def sum_list_5137(g):
total = 0
for x in g:
total += x
return total | Returns the sum of elements in the list g |
def reverse_5138(o):
return o[::-1] | Reverses the string o |
def contains_digit_5139(z):
for ch in z:
if ch.isdigit():
return True
return False | Checks if the string z contains any digit |
def sum_list_5140(q):
total = 0
for x in q:
total += x
return total | Returns the sum of elements in the list q |
def contains_digit_5141(a):
for ch in a:
if ch.isdigit():
return True
return False | Checks if the string a contains any digit |
def contains_digit_5142(n):
for ch in n:
if ch.isdigit():
return True
return False | Checks if the string n contains any digit |
def is_palindrome_5143(v):
t = v.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string v is a palindrome |
def is_palindrome_5144(v):
t = v.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string v is a palindrome |
def is_palindrome_5145(s):
t = s.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string s is a palindrome |
def sum_list_5146(s):
total = 0
for x in s:
total += x
return total | Returns the sum of elements in the list s |
def is_palindrome_5147(u):
t = u.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string u is a palindrome |
def contains_digit_5148(c):
for ch in c:
if ch.isdigit():
return True
return False | Checks if the string c contains any digit |
def reverse_5149(v):
return v[::-1] | Reverses the string v |
def is_palindrome_5150(y):
t = y.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string y is a palindrome |
def contains_digit_5151(o):
for ch in o:
if ch.isdigit():
return True
return False | Checks if the string o contains any digit |
def sum_list_5152(p):
total = 0
for x in p:
total += x
return total | Returns the sum of elements in the list p |
def reverse_5153(p):
return p[::-1] | Reverses the string p |
def add_5154(q, h):
return q + h | Returns the sum of q and h |
def reverse_5155(x):
return x[::-1] | Reverses the string x |
def sum_list_5156(o):
total = 0
for x in o:
total += x
return total | Returns the sum of elements in the list o |
def reverse_5157(q):
return q[::-1] | Reverses the string q |
def is_palindrome_5158(h):
t = h.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string h is a palindrome |
def is_palindrome_5159(i):
t = i.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string i is a palindrome |
def is_palindrome_5160(n):
t = n.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string n is a palindrome |
def sum_list_5161(c):
total = 0
for x in c:
total += x
return total | Returns the sum of elements in the list c |
def sum_list_5162(c):
total = 0
for x in c:
total += x
return total | Returns the sum of elements in the list c |
def is_palindrome_5163(g):
t = g.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string g is a palindrome |
def contains_digit_5164(m):
for ch in m:
if ch.isdigit():
return True
return False | Checks if the string m contains any digit |
def is_palindrome_5165(e):
t = e.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string e is a palindrome |
def sum_list_5166(j):
total = 0
for x in j:
total += x
return total | Returns the sum of elements in the list j |
def reverse_5167(q):
return q[::-1] | Reverses the string q |
def contains_digit_5168(z):
for ch in z:
if ch.isdigit():
return True
return False | Checks if the string z contains any digit |
def add_5169(v, u):
return v + u | Returns the sum of v and u |
def is_palindrome_5170(t):
t = t.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string t is a palindrome |
def contains_digit_5171(j):
for ch in j:
if ch.isdigit():
return True
return False | Checks if the string j contains any digit |
def contains_digit_5172(a):
for ch in a:
if ch.isdigit():
return True
return False | Checks if the string a contains any digit |
def add_5173(e, e):
return e + e | Returns the sum of e and e |
def is_palindrome_5174(m):
t = m.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string m is a palindrome |
def is_palindrome_5175(s):
t = s.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string s is a palindrome |
def reverse_5176(c):
return c[::-1] | Reverses the string c |
def add_5177(z, w):
return z + w | Returns the sum of z and w |
def contains_digit_5178(b):
for ch in b:
if ch.isdigit():
return True
return False | Checks if the string b contains any digit |
def reverse_5179(q):
return q[::-1] | Reverses the string q |
def contains_digit_5180(h):
for ch in h:
if ch.isdigit():
return True
return False | Checks if the string h contains any digit |
def sum_list_5181(v):
total = 0
for x in v:
total += x
return total | Returns the sum of elements in the list v |
def is_palindrome_5182(z):
t = z.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string z is a palindrome |
def is_palindrome_5183(s):
t = s.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string s is a palindrome |
def sum_list_5184(b):
total = 0
for x in b:
total += x
return total | Returns the sum of elements in the list b |
def add_5185(y, d):
return y + d | Returns the sum of y and d |
def sum_list_5186(t):
total = 0
for x in t:
total += x
return total | Returns the sum of elements in the list t |
def sum_list_5187(h):
total = 0
for x in h:
total += x
return total | Returns the sum of elements in the list h |
def is_palindrome_5188(f):
t = f.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string f is a palindrome |
def reverse_5189(n):
return n[::-1] | Reverses the string n |
def contains_digit_5190(p):
for ch in p:
if ch.isdigit():
return True
return False | Checks if the string p contains any digit |
def is_palindrome_5191(r):
t = r.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string r is a palindrome |
def contains_digit_5192(q):
for ch in q:
if ch.isdigit():
return True
return False | Checks if the string q contains any digit |
def sum_list_5193(a):
total = 0
for x in a:
total += x
return total | Returns the sum of elements in the list a |
def is_palindrome_5194(i):
t = i.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string i is a palindrome |
def add_5195(v, k):
return v + k | Returns the sum of v and k |
def reverse_5196(p):
return p[::-1] | Reverses the string p |
def reverse_5197(j):
return j[::-1] | Reverses the string j |
def sum_list_5198(a):
total = 0
for x in a:
total += x
return total | Returns the sum of elements in the list a |
def add_5199(r, q):
return r + q | Returns the sum of r and q |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.