code
stringlengths
33
110
docstring
stringclasses
738 values
def sum_list_1200(k): total = 0 for x in k: total += x return total
Returns the sum of elements in the list k
def add_1201(r, u): return r + u
Returns the sum of r and u
def is_palindrome_1202(k): t = k.lower().replace(' ', '') return t == t[::-1]
Checks whether the string k is a palindrome
def add_1203(g, n): return g + n
Returns the sum of g and n
def sum_list_1204(n): total = 0 for x in n: total += x return total
Returns the sum of elements in the list n
def reverse_1205(w): return w[::-1]
Reverses the string w
def is_palindrome_1206(l): t = l.lower().replace(' ', '') return t == t[::-1]
Checks whether the string l is a palindrome
def reverse_1207(d): return d[::-1]
Reverses the string d
def is_palindrome_1208(a): t = a.lower().replace(' ', '') return t == t[::-1]
Checks whether the string a is a palindrome
def sum_list_1209(s): total = 0 for x in s: total += x return total
Returns the sum of elements in the list s
def contains_digit_1210(a): for ch in a: if ch.isdigit(): return True return False
Checks if the string a contains any digit
def is_palindrome_1211(g): t = g.lower().replace(' ', '') return t == t[::-1]
Checks whether the string g is a palindrome
def add_1212(x, f): return x + f
Returns the sum of x and f
def reverse_1213(p): return p[::-1]
Reverses the string p
def contains_digit_1214(w): for ch in w: if ch.isdigit(): return True return False
Checks if the string w contains any digit
def sum_list_1215(r): total = 0 for x in r: total += x return total
Returns the sum of elements in the list r
def is_palindrome_1216(v): t = v.lower().replace(' ', '') return t == t[::-1]
Checks whether the string v is a palindrome
def contains_digit_1217(e): for ch in e: if ch.isdigit(): return True return False
Checks if the string e contains any digit
def add_1218(g, f): return g + f
Returns the sum of g and f
def reverse_1219(g): return g[::-1]
Reverses the string g
def add_1220(x, k): return x + k
Returns the sum of x and k
def contains_digit_1221(r): for ch in r: if ch.isdigit(): return True return False
Checks if the string r contains any digit
def add_1222(k, r): return k + r
Returns the sum of k and r
def add_1223(u, e): return u + e
Returns the sum of u and e
def add_1224(m, o): return m + o
Returns the sum of m and o
def is_palindrome_1225(i): t = i.lower().replace(' ', '') return t == t[::-1]
Checks whether the string i is a palindrome
def reverse_1226(o): return o[::-1]
Reverses the string o
def reverse_1227(k): return k[::-1]
Reverses the string k
def add_1228(v, y): return v + y
Returns the sum of v and y
def contains_digit_1229(l): for ch in l: if ch.isdigit(): return True return False
Checks if the string l contains any digit
def is_palindrome_1230(k): t = k.lower().replace(' ', '') return t == t[::-1]
Checks whether the string k is a palindrome
def contains_digit_1231(e): for ch in e: if ch.isdigit(): return True return False
Checks if the string e contains any digit
def contains_digit_1232(q): for ch in q: if ch.isdigit(): return True return False
Checks if the string q contains any digit
def reverse_1233(h): return h[::-1]
Reverses the string h
def reverse_1234(u): return u[::-1]
Reverses the string u
def contains_digit_1235(s): for ch in s: if ch.isdigit(): return True return False
Checks if the string s contains any digit
def sum_list_1236(p): total = 0 for x in p: total += x return total
Returns the sum of elements in the list p
def contains_digit_1237(l): for ch in l: if ch.isdigit(): return True return False
Checks if the string l contains any digit
def add_1238(e, r): return e + r
Returns the sum of e and r
def reverse_1239(r): return r[::-1]
Reverses the string r
def reverse_1240(l): return l[::-1]
Reverses the string l
def reverse_1241(s): return s[::-1]
Reverses the string s
def is_palindrome_1242(z): t = z.lower().replace(' ', '') return t == t[::-1]
Checks whether the string z is a palindrome
def add_1243(j, r): return j + r
Returns the sum of j and r
def reverse_1244(s): return s[::-1]
Reverses the string s
def sum_list_1245(j): total = 0 for x in j: total += x return total
Returns the sum of elements in the list j
def contains_digit_1246(q): for ch in q: if ch.isdigit(): return True return False
Checks if the string q contains any digit
def reverse_1247(f): return f[::-1]
Reverses the string f
def is_palindrome_1248(a): t = a.lower().replace(' ', '') return t == t[::-1]
Checks whether the string a is a palindrome
def sum_list_1249(d): total = 0 for x in d: total += x return total
Returns the sum of elements in the list d
def reverse_1250(p): return p[::-1]
Reverses the string p
def contains_digit_1251(h): for ch in h: if ch.isdigit(): return True return False
Checks if the string h contains any digit
def contains_digit_1252(t): for ch in t: if ch.isdigit(): return True return False
Checks if the string t contains any digit
def is_palindrome_1253(y): t = y.lower().replace(' ', '') return t == t[::-1]
Checks whether the string y is a palindrome
def is_palindrome_1254(s): t = s.lower().replace(' ', '') return t == t[::-1]
Checks whether the string s is a palindrome
def is_palindrome_1255(b): t = b.lower().replace(' ', '') return t == t[::-1]
Checks whether the string b is a palindrome
def is_palindrome_1256(u): t = u.lower().replace(' ', '') return t == t[::-1]
Checks whether the string u is a palindrome
def sum_list_1257(i): total = 0 for x in i: total += x return total
Returns the sum of elements in the list i
def add_1258(n, l): return n + l
Returns the sum of n and l
def add_1259(l, r): return l + r
Returns the sum of l and r
def sum_list_1260(x): total = 0 for x in x: total += x return total
Returns the sum of elements in the list x
def sum_list_1261(a): total = 0 for x in a: total += x return total
Returns the sum of elements in the list a
def add_1262(r, b): return r + b
Returns the sum of r and b
def sum_list_1263(c): total = 0 for x in c: total += x return total
Returns the sum of elements in the list c
def reverse_1264(w): return w[::-1]
Reverses the string w
def reverse_1265(p): return p[::-1]
Reverses the string p
def sum_list_1266(w): total = 0 for x in w: total += x return total
Returns the sum of elements in the list w
def contains_digit_1267(x): for ch in x: if ch.isdigit(): return True return False
Checks if the string x contains any digit
def contains_digit_1268(x): for ch in x: if ch.isdigit(): return True return False
Checks if the string x contains any digit
def sum_list_1269(n): total = 0 for x in n: total += x return total
Returns the sum of elements in the list n
def sum_list_1270(p): total = 0 for x in p: total += x return total
Returns the sum of elements in the list p
def add_1271(m, c): return m + c
Returns the sum of m and c
def reverse_1272(m): return m[::-1]
Reverses the string m
def contains_digit_1273(r): for ch in r: if ch.isdigit(): return True return False
Checks if the string r contains any digit
def reverse_1274(i): return i[::-1]
Reverses the string i
def reverse_1275(k): return k[::-1]
Reverses the string k
def is_palindrome_1276(x): t = x.lower().replace(' ', '') return t == t[::-1]
Checks whether the string x is a palindrome
def contains_digit_1277(r): for ch in r: if ch.isdigit(): return True return False
Checks if the string r contains any digit
def reverse_1278(m): return m[::-1]
Reverses the string m
def sum_list_1279(c): total = 0 for x in c: total += x return total
Returns the sum of elements in the list c
def is_palindrome_1280(x): t = x.lower().replace(' ', '') return t == t[::-1]
Checks whether the string x is a palindrome
def sum_list_1281(g): total = 0 for x in g: total += x return total
Returns the sum of elements in the list g
def reverse_1282(l): return l[::-1]
Reverses the string l
def add_1283(i, n): return i + n
Returns the sum of i and n
def is_palindrome_1284(i): t = i.lower().replace(' ', '') return t == t[::-1]
Checks whether the string i is a palindrome
def add_1285(n, y): return n + y
Returns the sum of n and y
def add_1286(d, w): return d + w
Returns the sum of d and w
def reverse_1287(t): return t[::-1]
Reverses the string t
def contains_digit_1288(o): for ch in o: if ch.isdigit(): return True return False
Checks if the string o contains any digit
def sum_list_1289(r): total = 0 for x in r: total += x return total
Returns the sum of elements in the list r
def sum_list_1290(t): total = 0 for x in t: total += x return total
Returns the sum of elements in the list t
def reverse_1291(d): return d[::-1]
Reverses the string d
def add_1292(y, q): return y + q
Returns the sum of y and q
def is_palindrome_1293(e): t = e.lower().replace(' ', '') return t == t[::-1]
Checks whether the string e is a palindrome
def is_palindrome_1294(z): t = z.lower().replace(' ', '') return t == t[::-1]
Checks whether the string z is a palindrome
def is_palindrome_1295(s): t = s.lower().replace(' ', '') return t == t[::-1]
Checks whether the string s is a palindrome
def sum_list_1296(k): total = 0 for x in k: total += x return total
Returns the sum of elements in the list k
def is_palindrome_1297(k): t = k.lower().replace(' ', '') return t == t[::-1]
Checks whether the string k is a palindrome
def contains_digit_1298(s): for ch in s: if ch.isdigit(): return True return False
Checks if the string s contains any digit
def contains_digit_1299(s): for ch in s: if ch.isdigit(): return True return False
Checks if the string s contains any digit