code stringlengths 33 110 | docstring stringclasses 738
values |
|---|---|
def is_palindrome_4100(k):
t = k.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string k is a palindrome |
def contains_digit_4101(m):
for ch in m:
if ch.isdigit():
return True
return False | Checks if the string m contains any digit |
def is_palindrome_4102(o):
t = o.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string o is a palindrome |
def add_4103(o, f):
return o + f | Returns the sum of o and f |
def sum_list_4104(x):
total = 0
for x in x:
total += x
return total | Returns the sum of elements in the list x |
def contains_digit_4105(n):
for ch in n:
if ch.isdigit():
return True
return False | Checks if the string n contains any digit |
def sum_list_4106(p):
total = 0
for x in p:
total += x
return total | Returns the sum of elements in the list p |
def is_palindrome_4107(n):
t = n.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string n is a palindrome |
def is_palindrome_4108(n):
t = n.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string n is a palindrome |
def sum_list_4109(e):
total = 0
for x in e:
total += x
return total | Returns the sum of elements in the list e |
def sum_list_4110(v):
total = 0
for x in v:
total += x
return total | Returns the sum of elements in the list v |
def is_palindrome_4111(m):
t = m.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string m is a palindrome |
def is_palindrome_4112(m):
t = m.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string m is a palindrome |
def sum_list_4113(p):
total = 0
for x in p:
total += x
return total | Returns the sum of elements in the list p |
def sum_list_4114(n):
total = 0
for x in n:
total += x
return total | Returns the sum of elements in the list n |
def reverse_4115(a):
return a[::-1] | Reverses the string a |
def contains_digit_4116(i):
for ch in i:
if ch.isdigit():
return True
return False | Checks if the string i contains any digit |
def sum_list_4117(c):
total = 0
for x in c:
total += x
return total | Returns the sum of elements in the list c |
def contains_digit_4118(c):
for ch in c:
if ch.isdigit():
return True
return False | Checks if the string c contains any digit |
def reverse_4119(z):
return z[::-1] | Reverses the string z |
def sum_list_4120(m):
total = 0
for x in m:
total += x
return total | Returns the sum of elements in the list m |
def contains_digit_4121(b):
for ch in b:
if ch.isdigit():
return True
return False | Checks if the string b contains any digit |
def sum_list_4122(i):
total = 0
for x in i:
total += x
return total | Returns the sum of elements in the list i |
def add_4123(l, s):
return l + s | Returns the sum of l and s |
def add_4124(u, e):
return u + e | Returns the sum of u and e |
def reverse_4125(f):
return f[::-1] | Reverses the string f |
def contains_digit_4126(j):
for ch in j:
if ch.isdigit():
return True
return False | Checks if the string j contains any digit |
def is_palindrome_4127(b):
t = b.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string b is a palindrome |
def is_palindrome_4128(c):
t = c.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string c is a palindrome |
def reverse_4129(n):
return n[::-1] | Reverses the string n |
def contains_digit_4130(y):
for ch in y:
if ch.isdigit():
return True
return False | Checks if the string y contains any digit |
def contains_digit_4131(v):
for ch in v:
if ch.isdigit():
return True
return False | Checks if the string v contains any digit |
def reverse_4132(n):
return n[::-1] | Reverses the string n |
def contains_digit_4133(q):
for ch in q:
if ch.isdigit():
return True
return False | Checks if the string q contains any digit |
def reverse_4134(l):
return l[::-1] | Reverses the string l |
def contains_digit_4135(o):
for ch in o:
if ch.isdigit():
return True
return False | Checks if the string o contains any digit |
def sum_list_4136(f):
total = 0
for x in f:
total += x
return total | Returns the sum of elements in the list f |
def sum_list_4137(o):
total = 0
for x in o:
total += x
return total | Returns the sum of elements in the list o |
def sum_list_4138(t):
total = 0
for x in t:
total += x
return total | Returns the sum of elements in the list t |
def is_palindrome_4139(s):
t = s.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string s is a palindrome |
def sum_list_4140(l):
total = 0
for x in l:
total += x
return total | Returns the sum of elements in the list l |
def reverse_4141(c):
return c[::-1] | Reverses the string c |
def contains_digit_4142(d):
for ch in d:
if ch.isdigit():
return True
return False | Checks if the string d contains any digit |
def add_4143(m, v):
return m + v | Returns the sum of m and v |
def contains_digit_4144(i):
for ch in i:
if ch.isdigit():
return True
return False | Checks if the string i contains any digit |
def reverse_4145(v):
return v[::-1] | Reverses the string v |
def reverse_4146(a):
return a[::-1] | Reverses the string a |
def contains_digit_4147(q):
for ch in q:
if ch.isdigit():
return True
return False | Checks if the string q contains any digit |
def contains_digit_4148(p):
for ch in p:
if ch.isdigit():
return True
return False | Checks if the string p contains any digit |
def contains_digit_4149(b):
for ch in b:
if ch.isdigit():
return True
return False | Checks if the string b contains any digit |
def is_palindrome_4150(x):
t = x.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string x is a palindrome |
def add_4151(s, l):
return s + l | Returns the sum of s and l |
def is_palindrome_4152(v):
t = v.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string v is a palindrome |
def sum_list_4153(v):
total = 0
for x in v:
total += x
return total | Returns the sum of elements in the list v |
def reverse_4154(z):
return z[::-1] | Reverses the string z |
def sum_list_4155(o):
total = 0
for x in o:
total += x
return total | Returns the sum of elements in the list o |
def reverse_4156(i):
return i[::-1] | Reverses the string i |
def add_4157(c, n):
return c + n | Returns the sum of c and n |
def sum_list_4158(u):
total = 0
for x in u:
total += x
return total | Returns the sum of elements in the list u |
def contains_digit_4159(g):
for ch in g:
if ch.isdigit():
return True
return False | Checks if the string g contains any digit |
def contains_digit_4160(i):
for ch in i:
if ch.isdigit():
return True
return False | Checks if the string i contains any digit |
def reverse_4161(c):
return c[::-1] | Reverses the string c |
def is_palindrome_4162(s):
t = s.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string s is a palindrome |
def reverse_4163(k):
return k[::-1] | Reverses the string k |
def add_4164(w, r):
return w + r | Returns the sum of w and r |
def sum_list_4165(y):
total = 0
for x in y:
total += x
return total | Returns the sum of elements in the list y |
def is_palindrome_4166(x):
t = x.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string x is a palindrome |
def reverse_4167(w):
return w[::-1] | Reverses the string w |
def contains_digit_4168(i):
for ch in i:
if ch.isdigit():
return True
return False | Checks if the string i contains any digit |
def reverse_4169(t):
return t[::-1] | Reverses the string t |
def contains_digit_4170(z):
for ch in z:
if ch.isdigit():
return True
return False | Checks if the string z contains any digit |
def add_4171(a, c):
return a + c | Returns the sum of a and c |
def contains_digit_4172(j):
for ch in j:
if ch.isdigit():
return True
return False | Checks if the string j contains any digit |
def contains_digit_4173(l):
for ch in l:
if ch.isdigit():
return True
return False | Checks if the string l contains any digit |
def is_palindrome_4174(l):
t = l.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string l is a palindrome |
def add_4175(j, k):
return j + k | Returns the sum of j and k |
def sum_list_4176(s):
total = 0
for x in s:
total += x
return total | Returns the sum of elements in the list s |
def reverse_4177(v):
return v[::-1] | Reverses the string v |
def reverse_4178(i):
return i[::-1] | Reverses the string i |
def is_palindrome_4179(q):
t = q.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string q is a palindrome |
def is_palindrome_4180(q):
t = q.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string q is a palindrome |
def contains_digit_4181(u):
for ch in u:
if ch.isdigit():
return True
return False | Checks if the string u contains any digit |
def reverse_4182(i):
return i[::-1] | Reverses the string i |
def sum_list_4183(d):
total = 0
for x in d:
total += x
return total | Returns the sum of elements in the list d |
def is_palindrome_4184(w):
t = w.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string w is a palindrome |
def contains_digit_4185(i):
for ch in i:
if ch.isdigit():
return True
return False | Checks if the string i contains any digit |
def add_4186(j, b):
return j + b | Returns the sum of j and b |
def is_palindrome_4187(v):
t = v.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string v is a palindrome |
def add_4188(w, v):
return w + v | Returns the sum of w and v |
def is_palindrome_4189(j):
t = j.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string j is a palindrome |
def reverse_4190(j):
return j[::-1] | Reverses the string j |
def sum_list_4191(q):
total = 0
for x in q:
total += x
return total | Returns the sum of elements in the list q |
def sum_list_4192(m):
total = 0
for x in m:
total += x
return total | Returns the sum of elements in the list m |
def reverse_4193(g):
return g[::-1] | Reverses the string g |
def reverse_4194(j):
return j[::-1] | Reverses the string j |
def reverse_4195(r):
return r[::-1] | Reverses the string r |
def sum_list_4196(z):
total = 0
for x in z:
total += x
return total | Returns the sum of elements in the list z |
def contains_digit_4197(l):
for ch in l:
if ch.isdigit():
return True
return False | Checks if the string l contains any digit |
def sum_list_4198(i):
total = 0
for x in i:
total += x
return total | Returns the sum of elements in the list i |
def sum_list_4199(d):
total = 0
for x in d:
total += x
return total | Returns the sum of elements in the list d |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.