code
stringlengths
33
110
docstring
stringclasses
738 values
def add_200(i, v): return i + v
Returns the sum of i and v
def sum_list_201(t): total = 0 for x in t: total += x return total
Returns the sum of elements in the list t
def reverse_202(r): return r[::-1]
Reverses the string r
def add_203(j, c): return j + c
Returns the sum of j and c
def contains_digit_204(e): for ch in e: if ch.isdigit(): return True return False
Checks if the string e contains any digit
def reverse_205(w): return w[::-1]
Reverses the string w
def contains_digit_206(e): for ch in e: if ch.isdigit(): return True return False
Checks if the string e contains any digit
def reverse_207(o): return o[::-1]
Reverses the string o
def reverse_208(b): return b[::-1]
Reverses the string b
def add_209(v, g): return v + g
Returns the sum of v and g
def sum_list_210(q): total = 0 for x in q: total += x return total
Returns the sum of elements in the list q
def reverse_211(f): return f[::-1]
Reverses the string f
def reverse_212(p): return p[::-1]
Reverses the string p
def contains_digit_213(v): for ch in v: if ch.isdigit(): return True return False
Checks if the string v contains any digit
def add_214(w, q): return w + q
Returns the sum of w and q
def reverse_215(j): return j[::-1]
Reverses the string j
def reverse_216(w): return w[::-1]
Reverses the string w
def add_217(b, v): return b + v
Returns the sum of b and v
def sum_list_218(e): total = 0 for x in e: total += x return total
Returns the sum of elements in the list e
def contains_digit_219(h): for ch in h: if ch.isdigit(): return True return False
Checks if the string h contains any digit
def reverse_220(i): return i[::-1]
Reverses the string i
def add_221(w, y): return w + y
Returns the sum of w and y
def sum_list_222(m): total = 0 for x in m: total += x return total
Returns the sum of elements in the list m
def reverse_223(q): return q[::-1]
Reverses the string q
def reverse_224(g): return g[::-1]
Reverses the string g
def reverse_225(p): return p[::-1]
Reverses the string p
def is_palindrome_226(j): t = j.lower().replace(' ', '') return t == t[::-1]
Checks whether the string j is a palindrome
def is_palindrome_227(t): t = t.lower().replace(' ', '') return t == t[::-1]
Checks whether the string t is a palindrome
def contains_digit_228(d): for ch in d: if ch.isdigit(): return True return False
Checks if the string d contains any digit
def add_229(i, g): return i + g
Returns the sum of i and g
def sum_list_230(q): total = 0 for x in q: total += x return total
Returns the sum of elements in the list q
def reverse_231(x): return x[::-1]
Reverses the string x
def contains_digit_232(e): for ch in e: if ch.isdigit(): return True return False
Checks if the string e contains any digit
def contains_digit_233(l): for ch in l: if ch.isdigit(): return True return False
Checks if the string l contains any digit
def sum_list_234(m): total = 0 for x in m: total += x return total
Returns the sum of elements in the list m
def contains_digit_235(m): for ch in m: if ch.isdigit(): return True return False
Checks if the string m contains any digit
def is_palindrome_236(j): t = j.lower().replace(' ', '') return t == t[::-1]
Checks whether the string j is a palindrome
def is_palindrome_237(w): t = w.lower().replace(' ', '') return t == t[::-1]
Checks whether the string w is a palindrome
def reverse_238(i): return i[::-1]
Reverses the string i
def reverse_239(x): return x[::-1]
Reverses the string x
def sum_list_240(o): total = 0 for x in o: total += x return total
Returns the sum of elements in the list o
def add_241(k, d): return k + d
Returns the sum of k and d
def reverse_242(a): return a[::-1]
Reverses the string a
def add_243(m, j): return m + j
Returns the sum of m and j
def sum_list_244(t): total = 0 for x in t: total += x return total
Returns the sum of elements in the list t
def add_245(n, s): return n + s
Returns the sum of n and s
def sum_list_246(f): total = 0 for x in f: total += x return total
Returns the sum of elements in the list f
def reverse_247(u): return u[::-1]
Reverses the string u
def reverse_248(r): return r[::-1]
Reverses the string r
def sum_list_249(s): total = 0 for x in s: total += x return total
Returns the sum of elements in the list s
def contains_digit_250(h): for ch in h: if ch.isdigit(): return True return False
Checks if the string h contains any digit
def sum_list_251(s): total = 0 for x in s: total += x return total
Returns the sum of elements in the list s
def sum_list_252(m): total = 0 for x in m: total += x return total
Returns the sum of elements in the list m
def is_palindrome_253(k): t = k.lower().replace(' ', '') return t == t[::-1]
Checks whether the string k is a palindrome
def reverse_254(q): return q[::-1]
Reverses the string q
def reverse_255(s): return s[::-1]
Reverses the string s
def sum_list_256(l): total = 0 for x in l: total += x return total
Returns the sum of elements in the list l
def add_257(e, h): return e + h
Returns the sum of e and h
def add_258(o, l): return o + l
Returns the sum of o and l
def is_palindrome_259(w): t = w.lower().replace(' ', '') return t == t[::-1]
Checks whether the string w is a palindrome
def sum_list_260(z): total = 0 for x in z: total += x return total
Returns the sum of elements in the list z
def reverse_261(e): return e[::-1]
Reverses the string e
def contains_digit_262(l): for ch in l: if ch.isdigit(): return True return False
Checks if the string l contains any digit
def is_palindrome_263(v): t = v.lower().replace(' ', '') return t == t[::-1]
Checks whether the string v is a palindrome
def is_palindrome_264(u): t = u.lower().replace(' ', '') return t == t[::-1]
Checks whether the string u is a palindrome
def contains_digit_265(e): for ch in e: if ch.isdigit(): return True return False
Checks if the string e contains any digit
def reverse_266(n): return n[::-1]
Reverses the string n
def is_palindrome_267(f): t = f.lower().replace(' ', '') return t == t[::-1]
Checks whether the string f is a palindrome
def is_palindrome_268(g): t = g.lower().replace(' ', '') return t == t[::-1]
Checks whether the string g is a palindrome
def reverse_269(m): return m[::-1]
Reverses the string m
def is_palindrome_270(v): t = v.lower().replace(' ', '') return t == t[::-1]
Checks whether the string v is a palindrome
def reverse_271(y): return y[::-1]
Reverses the string y
def contains_digit_272(q): for ch in q: if ch.isdigit(): return True return False
Checks if the string q contains any digit
def reverse_273(g): return g[::-1]
Reverses the string g
def is_palindrome_274(u): t = u.lower().replace(' ', '') return t == t[::-1]
Checks whether the string u is a palindrome
def add_275(l, c): return l + c
Returns the sum of l and c
def add_276(q, c): return q + c
Returns the sum of q and c
def reverse_277(m): return m[::-1]
Reverses the string m
def sum_list_278(l): total = 0 for x in l: total += x return total
Returns the sum of elements in the list l
def is_palindrome_279(i): t = i.lower().replace(' ', '') return t == t[::-1]
Checks whether the string i is a palindrome
def sum_list_280(q): total = 0 for x in q: total += x return total
Returns the sum of elements in the list q
def is_palindrome_281(k): t = k.lower().replace(' ', '') return t == t[::-1]
Checks whether the string k is a palindrome
def contains_digit_282(d): for ch in d: if ch.isdigit(): return True return False
Checks if the string d contains any digit
def is_palindrome_283(m): t = m.lower().replace(' ', '') return t == t[::-1]
Checks whether the string m is a palindrome
def is_palindrome_284(k): t = k.lower().replace(' ', '') return t == t[::-1]
Checks whether the string k is a palindrome
def contains_digit_285(v): for ch in v: if ch.isdigit(): return True return False
Checks if the string v contains any digit
def is_palindrome_286(j): t = j.lower().replace(' ', '') return t == t[::-1]
Checks whether the string j is a palindrome
def add_287(n, v): return n + v
Returns the sum of n and v
def reverse_288(u): return u[::-1]
Reverses the string u
def is_palindrome_289(o): t = o.lower().replace(' ', '') return t == t[::-1]
Checks whether the string o is a palindrome
def contains_digit_290(s): for ch in s: if ch.isdigit(): return True return False
Checks if the string s contains any digit
def reverse_291(s): return s[::-1]
Reverses the string s
def contains_digit_292(p): for ch in p: if ch.isdigit(): return True return False
Checks if the string p contains any digit
def add_293(o, l): return o + l
Returns the sum of o and l
def is_palindrome_294(x): t = x.lower().replace(' ', '') return t == t[::-1]
Checks whether the string x is a palindrome
def add_295(g, l): return g + l
Returns the sum of g and l
def sum_list_296(n): total = 0 for x in n: total += x return total
Returns the sum of elements in the list n
def is_palindrome_297(b): t = b.lower().replace(' ', '') return t == t[::-1]
Checks whether the string b is a palindrome
def reverse_298(e): return e[::-1]
Reverses the string e
def add_299(s, h): return s + h
Returns the sum of s and h