code stringlengths 33 110 | docstring stringclasses 738
values |
|---|---|
def add_6100(b, d):
return b + d | Returns the sum of b and d |
def reverse_6101(k):
return k[::-1] | Reverses the string k |
def add_6102(n, t):
return n + t | Returns the sum of n and t |
def is_palindrome_6103(w):
t = w.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string w is a palindrome |
def add_6104(l, f):
return l + f | Returns the sum of l and f |
def reverse_6105(b):
return b[::-1] | Reverses the string b |
def reverse_6106(m):
return m[::-1] | Reverses the string m |
def sum_list_6107(l):
total = 0
for x in l:
total += x
return total | Returns the sum of elements in the list l |
def add_6108(o, c):
return o + c | Returns the sum of o and c |
def is_palindrome_6109(s):
t = s.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string s is a palindrome |
def sum_list_6110(y):
total = 0
for x in y:
total += x
return total | Returns the sum of elements in the list y |
def add_6111(d, z):
return d + z | Returns the sum of d and z |
def sum_list_6112(b):
total = 0
for x in b:
total += x
return total | Returns the sum of elements in the list b |
def contains_digit_6113(d):
for ch in d:
if ch.isdigit():
return True
return False | Checks if the string d contains any digit |
def reverse_6114(l):
return l[::-1] | Reverses the string l |
def contains_digit_6115(v):
for ch in v:
if ch.isdigit():
return True
return False | Checks if the string v contains any digit |
def reverse_6116(l):
return l[::-1] | Reverses the string l |
def sum_list_6117(b):
total = 0
for x in b:
total += x
return total | Returns the sum of elements in the list b |
def add_6118(d, j):
return d + j | Returns the sum of d and j |
def contains_digit_6119(a):
for ch in a:
if ch.isdigit():
return True
return False | Checks if the string a contains any digit |
def add_6120(t, u):
return t + u | Returns the sum of t and u |
def is_palindrome_6121(a):
t = a.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string a is a palindrome |
def reverse_6122(f):
return f[::-1] | Reverses the string f |
def add_6123(n, f):
return n + f | Returns the sum of n and f |
def add_6124(t, b):
return t + b | Returns the sum of t and b |
def reverse_6125(y):
return y[::-1] | Reverses the string y |
def sum_list_6126(q):
total = 0
for x in q:
total += x
return total | Returns the sum of elements in the list q |
def contains_digit_6127(g):
for ch in g:
if ch.isdigit():
return True
return False | Checks if the string g contains any digit |
def contains_digit_6128(a):
for ch in a:
if ch.isdigit():
return True
return False | Checks if the string a contains any digit |
def is_palindrome_6129(q):
t = q.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string q is a palindrome |
def add_6130(q, c):
return q + c | Returns the sum of q and c |
def reverse_6131(y):
return y[::-1] | Reverses the string y |
def reverse_6132(l):
return l[::-1] | Reverses the string l |
def is_palindrome_6133(v):
t = v.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string v is a palindrome |
def contains_digit_6134(r):
for ch in r:
if ch.isdigit():
return True
return False | Checks if the string r contains any digit |
def contains_digit_6135(n):
for ch in n:
if ch.isdigit():
return True
return False | Checks if the string n contains any digit |
def reverse_6136(e):
return e[::-1] | Reverses the string e |
def sum_list_6137(y):
total = 0
for x in y:
total += x
return total | Returns the sum of elements in the list y |
def sum_list_6138(q):
total = 0
for x in q:
total += x
return total | Returns the sum of elements in the list q |
def contains_digit_6139(z):
for ch in z:
if ch.isdigit():
return True
return False | Checks if the string z contains any digit |
def reverse_6140(h):
return h[::-1] | Reverses the string h |
def sum_list_6141(d):
total = 0
for x in d:
total += x
return total | Returns the sum of elements in the list d |
def is_palindrome_6142(w):
t = w.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string w is a palindrome |
def add_6143(v, k):
return v + k | Returns the sum of v and k |
def sum_list_6144(q):
total = 0
for x in q:
total += x
return total | Returns the sum of elements in the list q |
def is_palindrome_6145(g):
t = g.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string g is a palindrome |
def sum_list_6146(e):
total = 0
for x in e:
total += x
return total | Returns the sum of elements in the list e |
def reverse_6147(x):
return x[::-1] | Reverses the string x |
def sum_list_6148(g):
total = 0
for x in g:
total += x
return total | Returns the sum of elements in the list g |
def contains_digit_6149(r):
for ch in r:
if ch.isdigit():
return True
return False | Checks if the string r contains any digit |
def reverse_6150(b):
return b[::-1] | Reverses the string b |
def is_palindrome_6151(z):
t = z.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string z is a palindrome |
def contains_digit_6152(z):
for ch in z:
if ch.isdigit():
return True
return False | Checks if the string z contains any digit |
def add_6153(f, b):
return f + b | Returns the sum of f and b |
def add_6154(c, o):
return c + o | Returns the sum of c and o |
def is_palindrome_6155(a):
t = a.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string a is a palindrome |
def reverse_6156(t):
return t[::-1] | Reverses the string t |
def add_6157(h, d):
return h + d | Returns the sum of h and d |
def reverse_6158(g):
return g[::-1] | Reverses the string g |
def add_6159(s, v):
return s + v | Returns the sum of s and v |
def sum_list_6160(s):
total = 0
for x in s:
total += x
return total | Returns the sum of elements in the list s |
def add_6161(e, f):
return e + f | Returns the sum of e and f |
def sum_list_6162(d):
total = 0
for x in d:
total += x
return total | Returns the sum of elements in the list d |
def contains_digit_6163(t):
for ch in t:
if ch.isdigit():
return True
return False | Checks if the string t contains any digit |
def contains_digit_6164(l):
for ch in l:
if ch.isdigit():
return True
return False | Checks if the string l contains any digit |
def add_6165(l, u):
return l + u | Returns the sum of l and u |
def add_6166(n, y):
return n + y | Returns the sum of n and y |
def reverse_6167(d):
return d[::-1] | Reverses the string d |
def contains_digit_6168(h):
for ch in h:
if ch.isdigit():
return True
return False | Checks if the string h contains any digit |
def sum_list_6169(m):
total = 0
for x in m:
total += x
return total | Returns the sum of elements in the list m |
def contains_digit_6170(f):
for ch in f:
if ch.isdigit():
return True
return False | Checks if the string f contains any digit |
def reverse_6171(y):
return y[::-1] | Reverses the string y |
def contains_digit_6172(o):
for ch in o:
if ch.isdigit():
return True
return False | Checks if the string o contains any digit |
def sum_list_6173(o):
total = 0
for x in o:
total += x
return total | Returns the sum of elements in the list o |
def reverse_6174(q):
return q[::-1] | Reverses the string q |
def is_palindrome_6175(a):
t = a.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string a is a palindrome |
def sum_list_6176(o):
total = 0
for x in o:
total += x
return total | Returns the sum of elements in the list o |
def sum_list_6177(h):
total = 0
for x in h:
total += x
return total | Returns the sum of elements in the list h |
def add_6178(p, b):
return p + b | Returns the sum of p and b |
def reverse_6179(p):
return p[::-1] | Reverses the string p |
def sum_list_6180(k):
total = 0
for x in k:
total += x
return total | Returns the sum of elements in the list k |
def add_6181(v, h):
return v + h | Returns the sum of v and h |
def is_palindrome_6182(g):
t = g.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string g is a palindrome |
def contains_digit_6183(u):
for ch in u:
if ch.isdigit():
return True
return False | Checks if the string u contains any digit |
def is_palindrome_6184(s):
t = s.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string s is a palindrome |
def reverse_6185(p):
return p[::-1] | Reverses the string p |
def add_6186(a, p):
return a + p | Returns the sum of a and p |
def reverse_6187(y):
return y[::-1] | Reverses the string y |
def add_6188(t, h):
return t + h | Returns the sum of t and h |
def sum_list_6189(d):
total = 0
for x in d:
total += x
return total | Returns the sum of elements in the list d |
def is_palindrome_6190(u):
t = u.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string u is a palindrome |
def reverse_6191(d):
return d[::-1] | Reverses the string d |
def reverse_6192(w):
return w[::-1] | Reverses the string w |
def is_palindrome_6193(h):
t = h.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string h is a palindrome |
def sum_list_6194(n):
total = 0
for x in n:
total += x
return total | Returns the sum of elements in the list n |
def add_6195(b, m):
return b + m | Returns the sum of b and m |
def is_palindrome_6196(s):
t = s.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string s is a palindrome |
def contains_digit_6197(q):
for ch in q:
if ch.isdigit():
return True
return False | Checks if the string q contains any digit |
def sum_list_6198(q):
total = 0
for x in q:
total += x
return total | Returns the sum of elements in the list q |
def sum_list_6199(t):
total = 0
for x in t:
total += x
return total | Returns the sum of elements in the list t |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.