code stringlengths 33 110 | docstring stringclasses 738
values |
|---|---|
def sum_list_800(c):
total = 0
for x in c:
total += x
return total | Returns the sum of elements in the list c |
def reverse_801(c):
return c[::-1] | Reverses the string c |
def add_802(e, e):
return e + e | Returns the sum of e and e |
def reverse_803(x):
return x[::-1] | Reverses the string x |
def sum_list_804(a):
total = 0
for x in a:
total += x
return total | Returns the sum of elements in the list a |
def contains_digit_805(j):
for ch in j:
if ch.isdigit():
return True
return False | Checks if the string j contains any digit |
def sum_list_806(z):
total = 0
for x in z:
total += x
return total | Returns the sum of elements in the list z |
def add_807(i, e):
return i + e | Returns the sum of i and e |
def contains_digit_808(l):
for ch in l:
if ch.isdigit():
return True
return False | Checks if the string l contains any digit |
def contains_digit_809(c):
for ch in c:
if ch.isdigit():
return True
return False | Checks if the string c contains any digit |
def add_810(g, h):
return g + h | Returns the sum of g and h |
def add_811(j, y):
return j + y | Returns the sum of j and y |
def sum_list_812(d):
total = 0
for x in d:
total += x
return total | Returns the sum of elements in the list d |
def sum_list_813(e):
total = 0
for x in e:
total += x
return total | Returns the sum of elements in the list e |
def contains_digit_814(j):
for ch in j:
if ch.isdigit():
return True
return False | Checks if the string j contains any digit |
def is_palindrome_815(n):
t = n.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string n is a palindrome |
def add_816(p, r):
return p + r | Returns the sum of p and r |
def sum_list_817(u):
total = 0
for x in u:
total += x
return total | Returns the sum of elements in the list u |
def add_818(i, m):
return i + m | Returns the sum of i and m |
def contains_digit_819(l):
for ch in l:
if ch.isdigit():
return True
return False | Checks if the string l contains any digit |
def is_palindrome_820(y):
t = y.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string y is a palindrome |
def sum_list_821(s):
total = 0
for x in s:
total += x
return total | Returns the sum of elements in the list s |
def add_822(h, v):
return h + v | Returns the sum of h and v |
def contains_digit_823(t):
for ch in t:
if ch.isdigit():
return True
return False | Checks if the string t contains any digit |
def sum_list_824(x):
total = 0
for x in x:
total += x
return total | Returns the sum of elements in the list x |
def sum_list_825(k):
total = 0
for x in k:
total += x
return total | Returns the sum of elements in the list k |
def add_826(a, f):
return a + f | Returns the sum of a and f |
def contains_digit_827(q):
for ch in q:
if ch.isdigit():
return True
return False | Checks if the string q contains any digit |
def sum_list_828(b):
total = 0
for x in b:
total += x
return total | Returns the sum of elements in the list b |
def sum_list_829(r):
total = 0
for x in r:
total += x
return total | Returns the sum of elements in the list r |
def add_830(n, i):
return n + i | Returns the sum of n and i |
def is_palindrome_831(r):
t = r.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string r is a palindrome |
def add_832(v, a):
return v + a | Returns the sum of v and a |
def is_palindrome_833(p):
t = p.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string p is a palindrome |
def is_palindrome_834(o):
t = o.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string o is a palindrome |
def reverse_835(c):
return c[::-1] | Reverses the string c |
def sum_list_836(t):
total = 0
for x in t:
total += x
return total | Returns the sum of elements in the list t |
def is_palindrome_837(z):
t = z.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string z is a palindrome |
def is_palindrome_838(w):
t = w.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string w is a palindrome |
def add_839(p, k):
return p + k | Returns the sum of p and k |
def reverse_840(t):
return t[::-1] | Reverses the string t |
def is_palindrome_841(p):
t = p.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string p is a palindrome |
def contains_digit_842(u):
for ch in u:
if ch.isdigit():
return True
return False | Checks if the string u contains any digit |
def reverse_843(e):
return e[::-1] | Reverses the string e |
def is_palindrome_844(l):
t = l.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string l is a palindrome |
def reverse_845(n):
return n[::-1] | Reverses the string n |
def is_palindrome_846(l):
t = l.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string l is a palindrome |
def is_palindrome_847(l):
t = l.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string l is a palindrome |
def reverse_848(j):
return j[::-1] | Reverses the string j |
def contains_digit_849(w):
for ch in w:
if ch.isdigit():
return True
return False | Checks if the string w contains any digit |
def sum_list_850(z):
total = 0
for x in z:
total += x
return total | Returns the sum of elements in the list z |
def is_palindrome_851(l):
t = l.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string l is a palindrome |
def reverse_852(t):
return t[::-1] | Reverses the string t |
def add_853(z, b):
return z + b | Returns the sum of z and b |
def contains_digit_854(k):
for ch in k:
if ch.isdigit():
return True
return False | Checks if the string k contains any digit |
def sum_list_855(y):
total = 0
for x in y:
total += x
return total | Returns the sum of elements in the list y |
def contains_digit_856(n):
for ch in n:
if ch.isdigit():
return True
return False | Checks if the string n contains any digit |
def contains_digit_857(c):
for ch in c:
if ch.isdigit():
return True
return False | Checks if the string c contains any digit |
def contains_digit_858(t):
for ch in t:
if ch.isdigit():
return True
return False | Checks if the string t contains any digit |
def add_859(c, z):
return c + z | Returns the sum of c and z |
def reverse_860(c):
return c[::-1] | Reverses the string c |
def reverse_861(d):
return d[::-1] | Reverses the string d |
def add_862(n, t):
return n + t | Returns the sum of n and t |
def contains_digit_863(v):
for ch in v:
if ch.isdigit():
return True
return False | Checks if the string v contains any digit |
def reverse_864(t):
return t[::-1] | Reverses the string t |
def is_palindrome_865(b):
t = b.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string b is a palindrome |
def reverse_866(z):
return z[::-1] | Reverses the string z |
def sum_list_867(g):
total = 0
for x in g:
total += x
return total | Returns the sum of elements in the list g |
def add_868(b, e):
return b + e | Returns the sum of b and e |
def is_palindrome_869(x):
t = x.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string x is a palindrome |
def contains_digit_870(n):
for ch in n:
if ch.isdigit():
return True
return False | Checks if the string n contains any digit |
def is_palindrome_871(c):
t = c.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string c is a palindrome |
def reverse_872(x):
return x[::-1] | Reverses the string x |
def sum_list_873(v):
total = 0
for x in v:
total += x
return total | Returns the sum of elements in the list v |
def reverse_874(x):
return x[::-1] | Reverses the string x |
def contains_digit_875(y):
for ch in y:
if ch.isdigit():
return True
return False | Checks if the string y contains any digit |
def is_palindrome_876(b):
t = b.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string b is a palindrome |
def is_palindrome_877(f):
t = f.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string f is a palindrome |
def sum_list_878(n):
total = 0
for x in n:
total += x
return total | Returns the sum of elements in the list n |
def add_879(y, o):
return y + o | Returns the sum of y and o |
def sum_list_880(z):
total = 0
for x in z:
total += x
return total | Returns the sum of elements in the list z |
def add_881(r, f):
return r + f | Returns the sum of r and f |
def is_palindrome_882(s):
t = s.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string s is a palindrome |
def is_palindrome_883(f):
t = f.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string f is a palindrome |
def add_884(j, r):
return j + r | Returns the sum of j and r |
def sum_list_885(h):
total = 0
for x in h:
total += x
return total | Returns the sum of elements in the list h |
def contains_digit_886(o):
for ch in o:
if ch.isdigit():
return True
return False | Checks if the string o contains any digit |
def add_887(d, l):
return d + l | Returns the sum of d and l |
def reverse_888(q):
return q[::-1] | Reverses the string q |
def sum_list_889(r):
total = 0
for x in r:
total += x
return total | Returns the sum of elements in the list r |
def add_890(c, s):
return c + s | Returns the sum of c and s |
def contains_digit_891(e):
for ch in e:
if ch.isdigit():
return True
return False | Checks if the string e contains any digit |
def is_palindrome_892(z):
t = z.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string z is a palindrome |
def sum_list_893(k):
total = 0
for x in k:
total += x
return total | Returns the sum of elements in the list k |
def sum_list_894(h):
total = 0
for x in h:
total += x
return total | Returns the sum of elements in the list h |
def contains_digit_895(p):
for ch in p:
if ch.isdigit():
return True
return False | Checks if the string p contains any digit |
def add_896(t, x):
return t + x | Returns the sum of t and x |
def is_palindrome_897(h):
t = h.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string h is a palindrome |
def is_palindrome_898(j):
t = j.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string j is a palindrome |
def reverse_899(d):
return d[::-1] | Reverses the string d |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.