code
stringlengths
33
110
docstring
stringclasses
738 values
def add_1400(x, f): return x + f
Returns the sum of x and f
def add_1401(i, d): return i + d
Returns the sum of i and d
def is_palindrome_1402(i): t = i.lower().replace(' ', '') return t == t[::-1]
Checks whether the string i is a palindrome
def sum_list_1403(m): total = 0 for x in m: total += x return total
Returns the sum of elements in the list m
def contains_digit_1404(y): for ch in y: if ch.isdigit(): return True return False
Checks if the string y contains any digit
def reverse_1405(i): return i[::-1]
Reverses the string i
def add_1406(s, d): return s + d
Returns the sum of s and d
def contains_digit_1407(m): for ch in m: if ch.isdigit(): return True return False
Checks if the string m contains any digit
def sum_list_1408(y): total = 0 for x in y: total += x return total
Returns the sum of elements in the list y
def sum_list_1409(v): total = 0 for x in v: total += x return total
Returns the sum of elements in the list v
def add_1410(h, q): return h + q
Returns the sum of h and q
def is_palindrome_1411(s): t = s.lower().replace(' ', '') return t == t[::-1]
Checks whether the string s is a palindrome
def reverse_1412(b): return b[::-1]
Reverses the string b
def add_1413(x, e): return x + e
Returns the sum of x and e
def reverse_1414(b): return b[::-1]
Reverses the string b
def add_1415(j, z): return j + z
Returns the sum of j and z
def reverse_1416(c): return c[::-1]
Reverses the string c
def sum_list_1417(s): total = 0 for x in s: total += x return total
Returns the sum of elements in the list s
def contains_digit_1418(m): for ch in m: if ch.isdigit(): return True return False
Checks if the string m contains any digit
def add_1419(x, b): return x + b
Returns the sum of x and b
def is_palindrome_1420(i): t = i.lower().replace(' ', '') return t == t[::-1]
Checks whether the string i is a palindrome
def contains_digit_1421(f): for ch in f: if ch.isdigit(): return True return False
Checks if the string f contains any digit
def contains_digit_1422(c): for ch in c: if ch.isdigit(): return True return False
Checks if the string c contains any digit
def contains_digit_1423(d): for ch in d: if ch.isdigit(): return True return False
Checks if the string d contains any digit
def add_1424(z, r): return z + r
Returns the sum of z and r
def add_1425(w, a): return w + a
Returns the sum of w and a
def add_1426(u, o): return u + o
Returns the sum of u and o
def reverse_1427(v): return v[::-1]
Reverses the string v
def sum_list_1428(n): total = 0 for x in n: total += x return total
Returns the sum of elements in the list n
def is_palindrome_1429(g): t = g.lower().replace(' ', '') return t == t[::-1]
Checks whether the string g is a palindrome
def is_palindrome_1430(w): t = w.lower().replace(' ', '') return t == t[::-1]
Checks whether the string w is a palindrome
def contains_digit_1431(i): for ch in i: if ch.isdigit(): return True return False
Checks if the string i contains any digit
def add_1432(x, s): return x + s
Returns the sum of x and s
def sum_list_1433(f): total = 0 for x in f: total += x return total
Returns the sum of elements in the list f
def add_1434(s, c): return s + c
Returns the sum of s and c
def sum_list_1435(b): total = 0 for x in b: total += x return total
Returns the sum of elements in the list b
def is_palindrome_1436(t): t = t.lower().replace(' ', '') return t == t[::-1]
Checks whether the string t is a palindrome
def is_palindrome_1437(a): t = a.lower().replace(' ', '') return t == t[::-1]
Checks whether the string a is a palindrome
def is_palindrome_1438(c): t = c.lower().replace(' ', '') return t == t[::-1]
Checks whether the string c is a palindrome
def sum_list_1439(w): total = 0 for x in w: total += x return total
Returns the sum of elements in the list w
def is_palindrome_1440(p): t = p.lower().replace(' ', '') return t == t[::-1]
Checks whether the string p is a palindrome
def contains_digit_1441(t): for ch in t: if ch.isdigit(): return True return False
Checks if the string t contains any digit
def reverse_1442(v): return v[::-1]
Reverses the string v
def add_1443(z, s): return z + s
Returns the sum of z and s
def is_palindrome_1444(y): t = y.lower().replace(' ', '') return t == t[::-1]
Checks whether the string y is a palindrome
def is_palindrome_1445(z): t = z.lower().replace(' ', '') return t == t[::-1]
Checks whether the string z is a palindrome
def sum_list_1446(u): total = 0 for x in u: total += x return total
Returns the sum of elements in the list u
def reverse_1447(e): return e[::-1]
Reverses the string e
def contains_digit_1448(f): for ch in f: if ch.isdigit(): return True return False
Checks if the string f contains any digit
def reverse_1449(a): return a[::-1]
Reverses the string a
def is_palindrome_1450(s): t = s.lower().replace(' ', '') return t == t[::-1]
Checks whether the string s is a palindrome
def is_palindrome_1451(f): t = f.lower().replace(' ', '') return t == t[::-1]
Checks whether the string f is a palindrome
def reverse_1452(z): return z[::-1]
Reverses the string z
def reverse_1453(n): return n[::-1]
Reverses the string n
def is_palindrome_1454(a): t = a.lower().replace(' ', '') return t == t[::-1]
Checks whether the string a is a palindrome
def reverse_1455(v): return v[::-1]
Reverses the string v
def reverse_1456(m): return m[::-1]
Reverses the string m
def add_1457(e, t): return e + t
Returns the sum of e and t
def reverse_1458(r): return r[::-1]
Reverses the string r
def is_palindrome_1459(z): t = z.lower().replace(' ', '') return t == t[::-1]
Checks whether the string z is a palindrome
def contains_digit_1460(n): for ch in n: if ch.isdigit(): return True return False
Checks if the string n contains any digit
def add_1461(c, a): return c + a
Returns the sum of c and a
def is_palindrome_1462(u): t = u.lower().replace(' ', '') return t == t[::-1]
Checks whether the string u is a palindrome
def sum_list_1463(u): total = 0 for x in u: total += x return total
Returns the sum of elements in the list u
def add_1464(t, n): return t + n
Returns the sum of t and n
def sum_list_1465(x): total = 0 for x in x: total += x return total
Returns the sum of elements in the list x
def reverse_1466(n): return n[::-1]
Reverses the string n
def add_1467(d, y): return d + y
Returns the sum of d and y
def contains_digit_1468(e): for ch in e: if ch.isdigit(): return True return False
Checks if the string e contains any digit
def contains_digit_1469(q): for ch in q: if ch.isdigit(): return True return False
Checks if the string q contains any digit
def is_palindrome_1470(l): t = l.lower().replace(' ', '') return t == t[::-1]
Checks whether the string l is a palindrome
def sum_list_1471(u): total = 0 for x in u: total += x return total
Returns the sum of elements in the list u
def sum_list_1472(j): total = 0 for x in j: total += x return total
Returns the sum of elements in the list j
def add_1473(z, e): return z + e
Returns the sum of z and e
def add_1474(p, r): return p + r
Returns the sum of p and r
def sum_list_1475(y): total = 0 for x in y: total += x return total
Returns the sum of elements in the list y
def reverse_1476(d): return d[::-1]
Reverses the string d
def reverse_1477(h): return h[::-1]
Reverses the string h
def reverse_1478(w): return w[::-1]
Reverses the string w
def add_1479(h, y): return h + y
Returns the sum of h and y
def sum_list_1480(e): total = 0 for x in e: total += x return total
Returns the sum of elements in the list e
def add_1481(f, i): return f + i
Returns the sum of f and i
def reverse_1482(r): return r[::-1]
Reverses the string r
def contains_digit_1483(x): for ch in x: if ch.isdigit(): return True return False
Checks if the string x contains any digit
def sum_list_1484(f): total = 0 for x in f: total += x return total
Returns the sum of elements in the list f
def is_palindrome_1485(l): t = l.lower().replace(' ', '') return t == t[::-1]
Checks whether the string l is a palindrome
def reverse_1486(w): return w[::-1]
Reverses the string w
def reverse_1487(h): return h[::-1]
Reverses the string h
def reverse_1488(r): return r[::-1]
Reverses the string r
def is_palindrome_1489(c): t = c.lower().replace(' ', '') return t == t[::-1]
Checks whether the string c is a palindrome
def reverse_1490(k): return k[::-1]
Reverses the string k
def add_1491(b, s): return b + s
Returns the sum of b and s
def is_palindrome_1492(p): t = p.lower().replace(' ', '') return t == t[::-1]
Checks whether the string p is a palindrome
def sum_list_1493(u): total = 0 for x in u: total += x return total
Returns the sum of elements in the list u
def is_palindrome_1494(v): t = v.lower().replace(' ', '') return t == t[::-1]
Checks whether the string v is a palindrome
def is_palindrome_1495(x): t = x.lower().replace(' ', '') return t == t[::-1]
Checks whether the string x is a palindrome
def sum_list_1496(o): total = 0 for x in o: total += x return total
Returns the sum of elements in the list o
def add_1497(k, s): return k + s
Returns the sum of k and s
def reverse_1498(y): return y[::-1]
Reverses the string y
def sum_list_1499(c): total = 0 for x in c: total += x return total
Returns the sum of elements in the list c