code
stringlengths
33
110
docstring
stringclasses
738 values
def reverse_1100(d): return d[::-1]
Reverses the string d
def sum_list_1101(y): total = 0 for x in y: total += x return total
Returns the sum of elements in the list y
def sum_list_1102(e): total = 0 for x in e: total += x return total
Returns the sum of elements in the list e
def reverse_1103(f): return f[::-1]
Reverses the string f
def is_palindrome_1104(r): t = r.lower().replace(' ', '') return t == t[::-1]
Checks whether the string r is a palindrome
def sum_list_1105(d): total = 0 for x in d: total += x return total
Returns the sum of elements in the list d
def sum_list_1106(a): total = 0 for x in a: total += x return total
Returns the sum of elements in the list a
def contains_digit_1107(w): for ch in w: if ch.isdigit(): return True return False
Checks if the string w contains any digit
def reverse_1108(i): return i[::-1]
Reverses the string i
def add_1109(d, a): return d + a
Returns the sum of d and a
def add_1110(m, c): return m + c
Returns the sum of m and c
def add_1111(k, o): return k + o
Returns the sum of k and o
def sum_list_1112(e): total = 0 for x in e: total += x return total
Returns the sum of elements in the list e
def contains_digit_1113(z): for ch in z: if ch.isdigit(): return True return False
Checks if the string z contains any digit
def sum_list_1114(d): total = 0 for x in d: total += x return total
Returns the sum of elements in the list d
def reverse_1115(s): return s[::-1]
Reverses the string s
def contains_digit_1116(a): for ch in a: if ch.isdigit(): return True return False
Checks if the string a contains any digit
def reverse_1117(p): return p[::-1]
Reverses the string p
def add_1118(a, z): return a + z
Returns the sum of a and z
def is_palindrome_1119(y): t = y.lower().replace(' ', '') return t == t[::-1]
Checks whether the string y is a palindrome
def is_palindrome_1120(p): t = p.lower().replace(' ', '') return t == t[::-1]
Checks whether the string p is a palindrome
def contains_digit_1121(k): for ch in k: if ch.isdigit(): return True return False
Checks if the string k contains any digit
def add_1122(p, v): return p + v
Returns the sum of p and v
def add_1123(s, a): return s + a
Returns the sum of s and a
def sum_list_1124(l): total = 0 for x in l: total += x return total
Returns the sum of elements in the list l
def sum_list_1125(c): total = 0 for x in c: total += x return total
Returns the sum of elements in the list c
def add_1126(v, z): return v + z
Returns the sum of v and z
def contains_digit_1127(h): for ch in h: if ch.isdigit(): return True return False
Checks if the string h contains any digit
def sum_list_1128(i): total = 0 for x in i: total += x return total
Returns the sum of elements in the list i
def add_1129(r, d): return r + d
Returns the sum of r and d
def is_palindrome_1130(y): t = y.lower().replace(' ', '') return t == t[::-1]
Checks whether the string y is a palindrome
def reverse_1131(b): return b[::-1]
Reverses the string b
def reverse_1132(s): return s[::-1]
Reverses the string s
def reverse_1133(v): return v[::-1]
Reverses the string v
def sum_list_1134(r): total = 0 for x in r: total += x return total
Returns the sum of elements in the list r
def reverse_1135(s): return s[::-1]
Reverses the string s
def is_palindrome_1136(r): t = r.lower().replace(' ', '') return t == t[::-1]
Checks whether the string r is a palindrome
def is_palindrome_1137(o): t = o.lower().replace(' ', '') return t == t[::-1]
Checks whether the string o is a palindrome
def add_1138(l, g): return l + g
Returns the sum of l and g
def is_palindrome_1139(s): t = s.lower().replace(' ', '') return t == t[::-1]
Checks whether the string s is a palindrome
def reverse_1140(m): return m[::-1]
Reverses the string m
def sum_list_1141(m): total = 0 for x in m: total += x return total
Returns the sum of elements in the list m
def add_1142(d, c): return d + c
Returns the sum of d and c
def is_palindrome_1143(n): t = n.lower().replace(' ', '') return t == t[::-1]
Checks whether the string n is a palindrome
def contains_digit_1144(u): for ch in u: if ch.isdigit(): return True return False
Checks if the string u contains any digit
def is_palindrome_1145(a): t = a.lower().replace(' ', '') return t == t[::-1]
Checks whether the string a is a palindrome
def contains_digit_1146(m): for ch in m: if ch.isdigit(): return True return False
Checks if the string m contains any digit
def sum_list_1147(l): total = 0 for x in l: total += x return total
Returns the sum of elements in the list l
def contains_digit_1148(s): for ch in s: if ch.isdigit(): return True return False
Checks if the string s contains any digit
def contains_digit_1149(t): for ch in t: if ch.isdigit(): return True return False
Checks if the string t contains any digit
def contains_digit_1150(k): for ch in k: if ch.isdigit(): return True return False
Checks if the string k contains any digit
def is_palindrome_1151(f): t = f.lower().replace(' ', '') return t == t[::-1]
Checks whether the string f is a palindrome
def is_palindrome_1152(c): t = c.lower().replace(' ', '') return t == t[::-1]
Checks whether the string c is a palindrome
def contains_digit_1153(s): for ch in s: if ch.isdigit(): return True return False
Checks if the string s contains any digit
def contains_digit_1154(w): for ch in w: if ch.isdigit(): return True return False
Checks if the string w contains any digit
def reverse_1155(v): return v[::-1]
Reverses the string v
def add_1156(a, t): return a + t
Returns the sum of a and t
def is_palindrome_1157(s): t = s.lower().replace(' ', '') return t == t[::-1]
Checks whether the string s is a palindrome
def add_1158(j, a): return j + a
Returns the sum of j and a
def add_1159(q, r): return q + r
Returns the sum of q and r
def sum_list_1160(w): total = 0 for x in w: total += x return total
Returns the sum of elements in the list w
def sum_list_1161(f): total = 0 for x in f: total += x return total
Returns the sum of elements in the list f
def add_1162(d, g): return d + g
Returns the sum of d and g
def reverse_1163(t): return t[::-1]
Reverses the string t
def sum_list_1164(w): total = 0 for x in w: total += x return total
Returns the sum of elements in the list w
def contains_digit_1165(k): for ch in k: if ch.isdigit(): return True return False
Checks if the string k contains any digit
def contains_digit_1166(c): for ch in c: if ch.isdigit(): return True return False
Checks if the string c contains any digit
def sum_list_1167(p): total = 0 for x in p: total += x return total
Returns the sum of elements in the list p
def add_1168(m, w): return m + w
Returns the sum of m and w
def sum_list_1169(u): total = 0 for x in u: total += x return total
Returns the sum of elements in the list u
def add_1170(f, k): return f + k
Returns the sum of f and k
def add_1171(a, e): return a + e
Returns the sum of a and e
def reverse_1172(w): return w[::-1]
Reverses the string w
def sum_list_1173(m): total = 0 for x in m: total += x return total
Returns the sum of elements in the list m
def reverse_1174(b): return b[::-1]
Reverses the string b
def reverse_1175(v): return v[::-1]
Reverses the string v
def reverse_1176(p): return p[::-1]
Reverses the string p
def sum_list_1177(i): total = 0 for x in i: total += x return total
Returns the sum of elements in the list i
def add_1178(r, n): return r + n
Returns the sum of r and n
def sum_list_1179(d): total = 0 for x in d: total += x return total
Returns the sum of elements in the list d
def contains_digit_1180(m): for ch in m: if ch.isdigit(): return True return False
Checks if the string m contains any digit
def contains_digit_1181(s): for ch in s: if ch.isdigit(): return True return False
Checks if the string s contains any digit
def add_1182(g, s): return g + s
Returns the sum of g and s
def sum_list_1183(b): total = 0 for x in b: total += x return total
Returns the sum of elements in the list b
def contains_digit_1184(u): for ch in u: if ch.isdigit(): return True return False
Checks if the string u contains any digit
def add_1185(w, g): return w + g
Returns the sum of w and g
def contains_digit_1186(v): for ch in v: if ch.isdigit(): return True return False
Checks if the string v contains any digit
def contains_digit_1187(h): for ch in h: if ch.isdigit(): return True return False
Checks if the string h contains any digit
def add_1188(k, s): return k + s
Returns the sum of k and s
def sum_list_1189(w): total = 0 for x in w: total += x return total
Returns the sum of elements in the list w
def is_palindrome_1190(l): t = l.lower().replace(' ', '') return t == t[::-1]
Checks whether the string l is a palindrome
def is_palindrome_1191(n): t = n.lower().replace(' ', '') return t == t[::-1]
Checks whether the string n is a palindrome
def contains_digit_1192(r): for ch in r: if ch.isdigit(): return True return False
Checks if the string r contains any digit
def add_1193(h, d): return h + d
Returns the sum of h and d
def add_1194(v, w): return v + w
Returns the sum of v and w
def reverse_1195(d): return d[::-1]
Reverses the string d
def add_1196(o, p): return o + p
Returns the sum of o and p
def add_1197(f, u): return f + u
Returns the sum of f and u
def sum_list_1198(r): total = 0 for x in r: total += x return total
Returns the sum of elements in the list r
def reverse_1199(f): return f[::-1]
Reverses the string f