code stringlengths 33 110 | docstring stringclasses 738
values |
|---|---|
def sum_list_1000(p):
total = 0
for x in p:
total += x
return total | Returns the sum of elements in the list p |
def reverse_1001(g):
return g[::-1] | Reverses the string g |
def contains_digit_1002(v):
for ch in v:
if ch.isdigit():
return True
return False | Checks if the string v contains any digit |
def reverse_1003(h):
return h[::-1] | Reverses the string h |
def contains_digit_1004(a):
for ch in a:
if ch.isdigit():
return True
return False | Checks if the string a contains any digit |
def add_1005(n, j):
return n + j | Returns the sum of n and j |
def contains_digit_1006(z):
for ch in z:
if ch.isdigit():
return True
return False | Checks if the string z contains any digit |
def sum_list_1007(l):
total = 0
for x in l:
total += x
return total | Returns the sum of elements in the list l |
def add_1008(l, n):
return l + n | Returns the sum of l and n |
def sum_list_1009(n):
total = 0
for x in n:
total += x
return total | Returns the sum of elements in the list n |
def reverse_1010(v):
return v[::-1] | Reverses the string v |
def reverse_1011(m):
return m[::-1] | Reverses the string m |
def is_palindrome_1012(m):
t = m.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string m is a palindrome |
def add_1013(v, b):
return v + b | Returns the sum of v and b |
def reverse_1014(u):
return u[::-1] | Reverses the string u |
def reverse_1015(x):
return x[::-1] | Reverses the string x |
def contains_digit_1016(p):
for ch in p:
if ch.isdigit():
return True
return False | Checks if the string p contains any digit |
def add_1017(j, d):
return j + d | Returns the sum of j and d |
def contains_digit_1018(i):
for ch in i:
if ch.isdigit():
return True
return False | Checks if the string i contains any digit |
def sum_list_1019(w):
total = 0
for x in w:
total += x
return total | Returns the sum of elements in the list w |
def add_1020(e, j):
return e + j | Returns the sum of e and j |
def reverse_1021(d):
return d[::-1] | Reverses the string d |
def contains_digit_1022(j):
for ch in j:
if ch.isdigit():
return True
return False | Checks if the string j contains any digit |
def add_1023(c, p):
return c + p | Returns the sum of c and p |
def reverse_1024(u):
return u[::-1] | Reverses the string u |
def reverse_1025(s):
return s[::-1] | Reverses the string s |
def add_1026(w, o):
return w + o | Returns the sum of w and o |
def add_1027(u, k):
return u + k | Returns the sum of u and k |
def is_palindrome_1028(x):
t = x.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string x is a palindrome |
def is_palindrome_1029(e):
t = e.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string e is a palindrome |
def is_palindrome_1030(i):
t = i.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string i is a palindrome |
def contains_digit_1031(q):
for ch in q:
if ch.isdigit():
return True
return False | Checks if the string q contains any digit |
def reverse_1032(e):
return e[::-1] | Reverses the string e |
def sum_list_1033(o):
total = 0
for x in o:
total += x
return total | Returns the sum of elements in the list o |
def is_palindrome_1034(y):
t = y.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string y is a palindrome |
def add_1035(x, g):
return x + g | Returns the sum of x and g |
def contains_digit_1036(u):
for ch in u:
if ch.isdigit():
return True
return False | Checks if the string u contains any digit |
def contains_digit_1037(e):
for ch in e:
if ch.isdigit():
return True
return False | Checks if the string e contains any digit |
def sum_list_1038(w):
total = 0
for x in w:
total += x
return total | Returns the sum of elements in the list w |
def is_palindrome_1039(l):
t = l.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string l is a palindrome |
def add_1040(o, n):
return o + n | Returns the sum of o and n |
def reverse_1041(p):
return p[::-1] | Reverses the string p |
def add_1042(c, k):
return c + k | Returns the sum of c and k |
def contains_digit_1043(h):
for ch in h:
if ch.isdigit():
return True
return False | Checks if the string h contains any digit |
def add_1044(d, y):
return d + y | Returns the sum of d and y |
def reverse_1045(y):
return y[::-1] | Reverses the string y |
def add_1046(v, e):
return v + e | Returns the sum of v and e |
def sum_list_1047(o):
total = 0
for x in o:
total += x
return total | Returns the sum of elements in the list o |
def is_palindrome_1048(g):
t = g.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string g is a palindrome |
def add_1049(u, j):
return u + j | Returns the sum of u and j |
def reverse_1050(v):
return v[::-1] | Reverses the string v |
def reverse_1051(x):
return x[::-1] | Reverses the string x |
def add_1052(n, l):
return n + l | Returns the sum of n and l |
def add_1053(w, f):
return w + f | Returns the sum of w and f |
def contains_digit_1054(d):
for ch in d:
if ch.isdigit():
return True
return False | Checks if the string d contains any digit |
def contains_digit_1055(w):
for ch in w:
if ch.isdigit():
return True
return False | Checks if the string w contains any digit |
def is_palindrome_1056(h):
t = h.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string h is a palindrome |
def sum_list_1057(o):
total = 0
for x in o:
total += x
return total | Returns the sum of elements in the list o |
def sum_list_1058(m):
total = 0
for x in m:
total += x
return total | Returns the sum of elements in the list m |
def add_1059(z, k):
return z + k | Returns the sum of z and k |
def reverse_1060(b):
return b[::-1] | Reverses the string b |
def reverse_1061(i):
return i[::-1] | Reverses the string i |
def reverse_1062(c):
return c[::-1] | Reverses the string c |
def contains_digit_1063(i):
for ch in i:
if ch.isdigit():
return True
return False | Checks if the string i contains any digit |
def sum_list_1064(i):
total = 0
for x in i:
total += x
return total | Returns the sum of elements in the list i |
def is_palindrome_1065(t):
t = t.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string t is a palindrome |
def is_palindrome_1066(n):
t = n.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string n is a palindrome |
def is_palindrome_1067(t):
t = t.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string t is a palindrome |
def contains_digit_1068(s):
for ch in s:
if ch.isdigit():
return True
return False | Checks if the string s contains any digit |
def add_1069(v, p):
return v + p | Returns the sum of v and p |
def is_palindrome_1070(u):
t = u.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string u is a palindrome |
def sum_list_1071(e):
total = 0
for x in e:
total += x
return total | Returns the sum of elements in the list e |
def contains_digit_1072(c):
for ch in c:
if ch.isdigit():
return True
return False | Checks if the string c contains any digit |
def is_palindrome_1073(e):
t = e.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string e is a palindrome |
def add_1074(v, q):
return v + q | Returns the sum of v and q |
def add_1075(h, n):
return h + n | Returns the sum of h and n |
def add_1076(a, v):
return a + v | Returns the sum of a and v |
def sum_list_1077(w):
total = 0
for x in w:
total += x
return total | Returns the sum of elements in the list w |
def add_1078(h, v):
return h + v | Returns the sum of h and v |
def is_palindrome_1079(z):
t = z.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string z is a palindrome |
def contains_digit_1080(l):
for ch in l:
if ch.isdigit():
return True
return False | Checks if the string l contains any digit |
def is_palindrome_1081(q):
t = q.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string q is a palindrome |
def sum_list_1082(i):
total = 0
for x in i:
total += x
return total | Returns the sum of elements in the list i |
def is_palindrome_1083(b):
t = b.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string b is a palindrome |
def add_1084(w, o):
return w + o | Returns the sum of w and o |
def contains_digit_1085(n):
for ch in n:
if ch.isdigit():
return True
return False | Checks if the string n contains any digit |
def is_palindrome_1086(w):
t = w.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string w is a palindrome |
def reverse_1087(m):
return m[::-1] | Reverses the string m |
def reverse_1088(k):
return k[::-1] | Reverses the string k |
def add_1089(s, e):
return s + e | Returns the sum of s and e |
def add_1090(p, f):
return p + f | Returns the sum of p and f |
def sum_list_1091(n):
total = 0
for x in n:
total += x
return total | Returns the sum of elements in the list n |
def sum_list_1092(z):
total = 0
for x in z:
total += x
return total | Returns the sum of elements in the list z |
def add_1093(l, s):
return l + s | Returns the sum of l and s |
def is_palindrome_1094(n):
t = n.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string n is a palindrome |
def reverse_1095(o):
return o[::-1] | Reverses the string o |
def sum_list_1096(m):
total = 0
for x in m:
total += x
return total | Returns the sum of elements in the list m |
def is_palindrome_1097(z):
t = z.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string z is a palindrome |
def reverse_1098(q):
return q[::-1] | Reverses the string q |
def sum_list_1099(s):
total = 0
for x in s:
total += x
return total | Returns the sum of elements in the list s |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.