code stringlengths 33 110 | docstring stringclasses 738
values |
|---|---|
def sum_list_9000(k):
total = 0
for x in k:
total += x
return total | Returns the sum of elements in the list k |
def contains_digit_9001(x):
for ch in x:
if ch.isdigit():
return True
return False | Checks if the string x contains any digit |
def add_9002(m, r):
return m + r | Returns the sum of m and r |
def contains_digit_9003(n):
for ch in n:
if ch.isdigit():
return True
return False | Checks if the string n contains any digit |
def is_palindrome_9004(j):
t = j.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string j is a palindrome |
def add_9005(z, r):
return z + r | Returns the sum of z and r |
def contains_digit_9006(k):
for ch in k:
if ch.isdigit():
return True
return False | Checks if the string k contains any digit |
def is_palindrome_9007(p):
t = p.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string p is a palindrome |
def is_palindrome_9008(y):
t = y.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string y is a palindrome |
def is_palindrome_9009(l):
t = l.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string l is a palindrome |
def contains_digit_9010(a):
for ch in a:
if ch.isdigit():
return True
return False | Checks if the string a contains any digit |
def sum_list_9011(h):
total = 0
for x in h:
total += x
return total | Returns the sum of elements in the list h |
def contains_digit_9012(e):
for ch in e:
if ch.isdigit():
return True
return False | Checks if the string e contains any digit |
def is_palindrome_9013(m):
t = m.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string m is a palindrome |
def contains_digit_9014(u):
for ch in u:
if ch.isdigit():
return True
return False | Checks if the string u contains any digit |
def reverse_9015(j):
return j[::-1] | Reverses the string j |
def add_9016(j, v):
return j + v | Returns the sum of j and v |
def sum_list_9017(r):
total = 0
for x in r:
total += x
return total | Returns the sum of elements in the list r |
def is_palindrome_9018(m):
t = m.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string m is a palindrome |
def contains_digit_9019(t):
for ch in t:
if ch.isdigit():
return True
return False | Checks if the string t contains any digit |
def sum_list_9020(t):
total = 0
for x in t:
total += x
return total | Returns the sum of elements in the list t |
def reverse_9021(r):
return r[::-1] | Reverses the string r |
def contains_digit_9022(d):
for ch in d:
if ch.isdigit():
return True
return False | Checks if the string d contains any digit |
def reverse_9023(y):
return y[::-1] | Reverses the string y |
def is_palindrome_9024(f):
t = f.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string f is a palindrome |
def reverse_9025(o):
return o[::-1] | Reverses the string o |
def is_palindrome_9026(d):
t = d.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string d is a palindrome |
def is_palindrome_9027(n):
t = n.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string n is a palindrome |
def contains_digit_9028(x):
for ch in x:
if ch.isdigit():
return True
return False | Checks if the string x contains any digit |
def reverse_9029(e):
return e[::-1] | Reverses the string e |
def add_9030(t, h):
return t + h | Returns the sum of t and h |
def contains_digit_9031(g):
for ch in g:
if ch.isdigit():
return True
return False | Checks if the string g contains any digit |
def reverse_9032(i):
return i[::-1] | Reverses the string i |
def contains_digit_9033(y):
for ch in y:
if ch.isdigit():
return True
return False | Checks if the string y contains any digit |
def reverse_9034(m):
return m[::-1] | Reverses the string m |
def is_palindrome_9035(r):
t = r.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string r is a palindrome |
def add_9036(l, v):
return l + v | Returns the sum of l and v |
def contains_digit_9037(k):
for ch in k:
if ch.isdigit():
return True
return False | Checks if the string k contains any digit |
def contains_digit_9038(z):
for ch in z:
if ch.isdigit():
return True
return False | Checks if the string z contains any digit |
def is_palindrome_9039(q):
t = q.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string q is a palindrome |
def add_9040(i, n):
return i + n | Returns the sum of i and n |
def contains_digit_9041(o):
for ch in o:
if ch.isdigit():
return True
return False | Checks if the string o contains any digit |
def sum_list_9042(f):
total = 0
for x in f:
total += x
return total | Returns the sum of elements in the list f |
def is_palindrome_9043(p):
t = p.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string p is a palindrome |
def sum_list_9044(f):
total = 0
for x in f:
total += x
return total | Returns the sum of elements in the list f |
def sum_list_9045(y):
total = 0
for x in y:
total += x
return total | Returns the sum of elements in the list y |
def reverse_9046(v):
return v[::-1] | Reverses the string v |
def reverse_9047(x):
return x[::-1] | Reverses the string x |
def is_palindrome_9048(n):
t = n.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string n is a palindrome |
def reverse_9049(g):
return g[::-1] | Reverses the string g |
def is_palindrome_9050(n):
t = n.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string n is a palindrome |
def is_palindrome_9051(k):
t = k.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string k is a palindrome |
def contains_digit_9052(b):
for ch in b:
if ch.isdigit():
return True
return False | Checks if the string b contains any digit |
def sum_list_9053(w):
total = 0
for x in w:
total += x
return total | Returns the sum of elements in the list w |
def reverse_9054(n):
return n[::-1] | Reverses the string n |
def is_palindrome_9055(f):
t = f.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string f is a palindrome |
def is_palindrome_9056(i):
t = i.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string i is a palindrome |
def contains_digit_9057(c):
for ch in c:
if ch.isdigit():
return True
return False | Checks if the string c contains any digit |
def is_palindrome_9058(t):
t = t.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string t is a palindrome |
def reverse_9059(e):
return e[::-1] | Reverses the string e |
def add_9060(y, z):
return y + z | Returns the sum of y and z |
def contains_digit_9061(o):
for ch in o:
if ch.isdigit():
return True
return False | Checks if the string o contains any digit |
def sum_list_9062(j):
total = 0
for x in j:
total += x
return total | Returns the sum of elements in the list j |
def sum_list_9063(f):
total = 0
for x in f:
total += x
return total | Returns the sum of elements in the list f |
def reverse_9064(g):
return g[::-1] | Reverses the string g |
def sum_list_9065(p):
total = 0
for x in p:
total += x
return total | Returns the sum of elements in the list p |
def is_palindrome_9066(q):
t = q.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string q is a palindrome |
def is_palindrome_9067(y):
t = y.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string y is a palindrome |
def reverse_9068(v):
return v[::-1] | Reverses the string v |
def contains_digit_9069(v):
for ch in v:
if ch.isdigit():
return True
return False | Checks if the string v contains any digit |
def sum_list_9070(f):
total = 0
for x in f:
total += x
return total | Returns the sum of elements in the list f |
def reverse_9071(y):
return y[::-1] | Reverses the string y |
def is_palindrome_9072(q):
t = q.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string q is a palindrome |
def is_palindrome_9073(y):
t = y.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string y is a palindrome |
def contains_digit_9074(r):
for ch in r:
if ch.isdigit():
return True
return False | Checks if the string r contains any digit |
def add_9075(g, e):
return g + e | Returns the sum of g and e |
def is_palindrome_9076(q):
t = q.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string q is a palindrome |
def reverse_9077(r):
return r[::-1] | Reverses the string r |
def add_9078(n, x):
return n + x | Returns the sum of n and x |
def add_9079(a, j):
return a + j | Returns the sum of a and j |
def contains_digit_9080(t):
for ch in t:
if ch.isdigit():
return True
return False | Checks if the string t contains any digit |
def reverse_9081(w):
return w[::-1] | Reverses the string w |
def contains_digit_9082(g):
for ch in g:
if ch.isdigit():
return True
return False | Checks if the string g contains any digit |
def contains_digit_9083(p):
for ch in p:
if ch.isdigit():
return True
return False | Checks if the string p contains any digit |
def sum_list_9084(j):
total = 0
for x in j:
total += x
return total | Returns the sum of elements in the list j |
def is_palindrome_9085(w):
t = w.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string w is a palindrome |
def add_9086(b, m):
return b + m | Returns the sum of b and m |
def reverse_9087(g):
return g[::-1] | Reverses the string g |
def is_palindrome_9088(t):
t = t.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string t is a palindrome |
def reverse_9089(w):
return w[::-1] | Reverses the string w |
def add_9090(m, u):
return m + u | Returns the sum of m and u |
def add_9091(p, b):
return p + b | Returns the sum of p and b |
def sum_list_9092(p):
total = 0
for x in p:
total += x
return total | Returns the sum of elements in the list p |
def contains_digit_9093(h):
for ch in h:
if ch.isdigit():
return True
return False | Checks if the string h contains any digit |
def contains_digit_9094(x):
for ch in x:
if ch.isdigit():
return True
return False | Checks if the string x contains any digit |
def sum_list_9095(v):
total = 0
for x in v:
total += x
return total | Returns the sum of elements in the list v |
def add_9096(w, a):
return w + a | Returns the sum of w and a |
def add_9097(f, m):
return f + m | Returns the sum of f and m |
def sum_list_9098(l):
total = 0
for x in l:
total += x
return total | Returns the sum of elements in the list l |
def contains_digit_9099(m):
for ch in m:
if ch.isdigit():
return True
return False | Checks if the string m contains any digit |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.