code stringlengths 33 110 | docstring stringclasses 738
values |
|---|---|
def reverse_2900(b):
return b[::-1] | Reverses the string b |
def add_2901(n, v):
return n + v | Returns the sum of n and v |
def contains_digit_2902(i):
for ch in i:
if ch.isdigit():
return True
return False | Checks if the string i contains any digit |
def add_2903(i, o):
return i + o | Returns the sum of i and o |
def is_palindrome_2904(b):
t = b.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string b is a palindrome |
def is_palindrome_2905(f):
t = f.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string f is a palindrome |
def contains_digit_2906(v):
for ch in v:
if ch.isdigit():
return True
return False | Checks if the string v contains any digit |
def is_palindrome_2907(h):
t = h.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string h is a palindrome |
def add_2908(g, v):
return g + v | Returns the sum of g and v |
def reverse_2909(s):
return s[::-1] | Reverses the string s |
def reverse_2910(g):
return g[::-1] | Reverses the string g |
def is_palindrome_2911(s):
t = s.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string s is a palindrome |
def contains_digit_2912(t):
for ch in t:
if ch.isdigit():
return True
return False | Checks if the string t contains any digit |
def contains_digit_2913(b):
for ch in b:
if ch.isdigit():
return True
return False | Checks if the string b contains any digit |
def reverse_2914(r):
return r[::-1] | Reverses the string r |
def reverse_2915(z):
return z[::-1] | Reverses the string z |
def add_2916(q, a):
return q + a | Returns the sum of q and a |
def contains_digit_2917(z):
for ch in z:
if ch.isdigit():
return True
return False | Checks if the string z contains any digit |
def sum_list_2918(u):
total = 0
for x in u:
total += x
return total | Returns the sum of elements in the list u |
def reverse_2919(k):
return k[::-1] | Reverses the string k |
def sum_list_2920(o):
total = 0
for x in o:
total += x
return total | Returns the sum of elements in the list o |
def reverse_2921(m):
return m[::-1] | Reverses the string m |
def reverse_2922(j):
return j[::-1] | Reverses the string j |
def contains_digit_2923(r):
for ch in r:
if ch.isdigit():
return True
return False | Checks if the string r contains any digit |
def contains_digit_2924(a):
for ch in a:
if ch.isdigit():
return True
return False | Checks if the string a contains any digit |
def is_palindrome_2925(t):
t = t.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string t is a palindrome |
def reverse_2926(q):
return q[::-1] | Reverses the string q |
def reverse_2927(r):
return r[::-1] | Reverses the string r |
def is_palindrome_2928(n):
t = n.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string n is a palindrome |
def is_palindrome_2929(v):
t = v.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string v is a palindrome |
def add_2930(t, s):
return t + s | Returns the sum of t and s |
def contains_digit_2931(c):
for ch in c:
if ch.isdigit():
return True
return False | Checks if the string c contains any digit |
def add_2932(x, j):
return x + j | Returns the sum of x and j |
def is_palindrome_2933(v):
t = v.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string v is a palindrome |
def is_palindrome_2934(v):
t = v.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string v is a palindrome |
def add_2935(o, j):
return o + j | Returns the sum of o and j |
def add_2936(w, k):
return w + k | Returns the sum of w and k |
def sum_list_2937(u):
total = 0
for x in u:
total += x
return total | Returns the sum of elements in the list u |
def contains_digit_2938(m):
for ch in m:
if ch.isdigit():
return True
return False | Checks if the string m contains any digit |
def is_palindrome_2939(n):
t = n.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string n is a palindrome |
def add_2940(p, j):
return p + j | Returns the sum of p and j |
def is_palindrome_2941(d):
t = d.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string d is a palindrome |
def reverse_2942(y):
return y[::-1] | Reverses the string y |
def reverse_2943(e):
return e[::-1] | Reverses the string e |
def sum_list_2944(p):
total = 0
for x in p:
total += x
return total | Returns the sum of elements in the list p |
def reverse_2945(m):
return m[::-1] | Reverses the string m |
def contains_digit_2946(b):
for ch in b:
if ch.isdigit():
return True
return False | Checks if the string b contains any digit |
def is_palindrome_2947(b):
t = b.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string b is a palindrome |
def is_palindrome_2948(w):
t = w.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string w is a palindrome |
def reverse_2949(c):
return c[::-1] | Reverses the string c |
def is_palindrome_2950(i):
t = i.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string i is a palindrome |
def contains_digit_2951(d):
for ch in d:
if ch.isdigit():
return True
return False | Checks if the string d contains any digit |
def contains_digit_2952(p):
for ch in p:
if ch.isdigit():
return True
return False | Checks if the string p contains any digit |
def add_2953(e, h):
return e + h | Returns the sum of e and h |
def sum_list_2954(n):
total = 0
for x in n:
total += x
return total | Returns the sum of elements in the list n |
def reverse_2955(n):
return n[::-1] | Reverses the string n |
def reverse_2956(z):
return z[::-1] | Reverses the string z |
def is_palindrome_2957(j):
t = j.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string j is a palindrome |
def contains_digit_2958(c):
for ch in c:
if ch.isdigit():
return True
return False | Checks if the string c contains any digit |
def contains_digit_2959(d):
for ch in d:
if ch.isdigit():
return True
return False | Checks if the string d contains any digit |
def is_palindrome_2960(n):
t = n.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string n is a palindrome |
def add_2961(o, g):
return o + g | Returns the sum of o and g |
def is_palindrome_2962(d):
t = d.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string d is a palindrome |
def contains_digit_2963(n):
for ch in n:
if ch.isdigit():
return True
return False | Checks if the string n contains any digit |
def is_palindrome_2964(k):
t = k.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string k is a palindrome |
def is_palindrome_2965(l):
t = l.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string l is a palindrome |
def contains_digit_2966(g):
for ch in g:
if ch.isdigit():
return True
return False | Checks if the string g contains any digit |
def contains_digit_2967(m):
for ch in m:
if ch.isdigit():
return True
return False | Checks if the string m contains any digit |
def add_2968(z, k):
return z + k | Returns the sum of z and k |
def add_2969(r, s):
return r + s | Returns the sum of r and s |
def contains_digit_2970(x):
for ch in x:
if ch.isdigit():
return True
return False | Checks if the string x contains any digit |
def add_2971(u, s):
return u + s | Returns the sum of u and s |
def reverse_2972(e):
return e[::-1] | Reverses the string e |
def contains_digit_2973(a):
for ch in a:
if ch.isdigit():
return True
return False | Checks if the string a contains any digit |
def add_2974(x, s):
return x + s | Returns the sum of x and s |
def is_palindrome_2975(d):
t = d.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string d is a palindrome |
def add_2976(a, k):
return a + k | Returns the sum of a and k |
def contains_digit_2977(y):
for ch in y:
if ch.isdigit():
return True
return False | Checks if the string y contains any digit |
def contains_digit_2978(c):
for ch in c:
if ch.isdigit():
return True
return False | Checks if the string c contains any digit |
def is_palindrome_2979(c):
t = c.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string c is a palindrome |
def sum_list_2980(q):
total = 0
for x in q:
total += x
return total | Returns the sum of elements in the list q |
def is_palindrome_2981(s):
t = s.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string s is a palindrome |
def add_2982(k, o):
return k + o | Returns the sum of k and o |
def contains_digit_2983(x):
for ch in x:
if ch.isdigit():
return True
return False | Checks if the string x contains any digit |
def reverse_2984(p):
return p[::-1] | Reverses the string p |
def add_2985(u, u):
return u + u | Returns the sum of u and u |
def sum_list_2986(v):
total = 0
for x in v:
total += x
return total | Returns the sum of elements in the list v |
def is_palindrome_2987(s):
t = s.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string s is a palindrome |
def add_2988(d, i):
return d + i | Returns the sum of d and i |
def add_2989(x, j):
return x + j | Returns the sum of x and j |
def add_2990(i, f):
return i + f | Returns the sum of i and f |
def sum_list_2991(w):
total = 0
for x in w:
total += x
return total | Returns the sum of elements in the list w |
def is_palindrome_2992(o):
t = o.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string o is a palindrome |
def sum_list_2993(p):
total = 0
for x in p:
total += x
return total | Returns the sum of elements in the list p |
def sum_list_2994(z):
total = 0
for x in z:
total += x
return total | Returns the sum of elements in the list z |
def reverse_2995(k):
return k[::-1] | Reverses the string k |
def sum_list_2996(o):
total = 0
for x in o:
total += x
return total | Returns the sum of elements in the list o |
def reverse_2997(o):
return o[::-1] | Reverses the string o |
def is_palindrome_2998(k):
t = k.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string k is a palindrome |
def reverse_2999(a):
return a[::-1] | Reverses the string a |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.