code stringlengths 33 110 | docstring stringclasses 738
values |
|---|---|
def sum_list_4200(w):
total = 0
for x in w:
total += x
return total | Returns the sum of elements in the list w |
def add_4201(l, v):
return l + v | Returns the sum of l and v |
def reverse_4202(m):
return m[::-1] | Reverses the string m |
def reverse_4203(n):
return n[::-1] | Reverses the string n |
def is_palindrome_4204(s):
t = s.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string s is a palindrome |
def contains_digit_4205(y):
for ch in y:
if ch.isdigit():
return True
return False | Checks if the string y contains any digit |
def sum_list_4206(c):
total = 0
for x in c:
total += x
return total | Returns the sum of elements in the list c |
def sum_list_4207(a):
total = 0
for x in a:
total += x
return total | Returns the sum of elements in the list a |
def contains_digit_4208(e):
for ch in e:
if ch.isdigit():
return True
return False | Checks if the string e contains any digit |
def add_4209(c, u):
return c + u | Returns the sum of c and u |
def sum_list_4210(l):
total = 0
for x in l:
total += x
return total | Returns the sum of elements in the list l |
def sum_list_4211(l):
total = 0
for x in l:
total += x
return total | Returns the sum of elements in the list l |
def contains_digit_4212(q):
for ch in q:
if ch.isdigit():
return True
return False | Checks if the string q contains any digit |
def contains_digit_4213(z):
for ch in z:
if ch.isdigit():
return True
return False | Checks if the string z contains any digit |
def sum_list_4214(o):
total = 0
for x in o:
total += x
return total | Returns the sum of elements in the list o |
def reverse_4215(g):
return g[::-1] | Reverses the string g |
def is_palindrome_4216(k):
t = k.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string k is a palindrome |
def sum_list_4217(w):
total = 0
for x in w:
total += x
return total | Returns the sum of elements in the list w |
def sum_list_4218(g):
total = 0
for x in g:
total += x
return total | Returns the sum of elements in the list g |
def add_4219(j, q):
return j + q | Returns the sum of j and q |
def is_palindrome_4220(u):
t = u.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string u is a palindrome |
def sum_list_4221(y):
total = 0
for x in y:
total += x
return total | Returns the sum of elements in the list y |
def add_4222(i, v):
return i + v | Returns the sum of i and v |
def is_palindrome_4223(s):
t = s.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string s is a palindrome |
def reverse_4224(a):
return a[::-1] | Reverses the string a |
def sum_list_4225(f):
total = 0
for x in f:
total += x
return total | Returns the sum of elements in the list f |
def add_4226(y, f):
return y + f | Returns the sum of y and f |
def sum_list_4227(f):
total = 0
for x in f:
total += x
return total | Returns the sum of elements in the list f |
def is_palindrome_4228(s):
t = s.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string s is a palindrome |
def add_4229(m, x):
return m + x | Returns the sum of m and x |
def is_palindrome_4230(w):
t = w.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string w is a palindrome |
def reverse_4231(f):
return f[::-1] | Reverses the string f |
def contains_digit_4232(r):
for ch in r:
if ch.isdigit():
return True
return False | Checks if the string r contains any digit |
def sum_list_4233(e):
total = 0
for x in e:
total += x
return total | Returns the sum of elements in the list e |
def add_4234(x, b):
return x + b | Returns the sum of x and b |
def contains_digit_4235(e):
for ch in e:
if ch.isdigit():
return True
return False | Checks if the string e contains any digit |
def reverse_4236(q):
return q[::-1] | Reverses the string q |
def is_palindrome_4237(i):
t = i.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string i is a palindrome |
def add_4238(p, p):
return p + p | Returns the sum of p and p |
def sum_list_4239(i):
total = 0
for x in i:
total += x
return total | Returns the sum of elements in the list i |
def sum_list_4240(q):
total = 0
for x in q:
total += x
return total | Returns the sum of elements in the list q |
def contains_digit_4241(p):
for ch in p:
if ch.isdigit():
return True
return False | Checks if the string p contains any digit |
def is_palindrome_4242(o):
t = o.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string o is a palindrome |
def contains_digit_4243(y):
for ch in y:
if ch.isdigit():
return True
return False | Checks if the string y contains any digit |
def is_palindrome_4244(i):
t = i.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string i is a palindrome |
def is_palindrome_4245(i):
t = i.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string i is a palindrome |
def sum_list_4246(p):
total = 0
for x in p:
total += x
return total | Returns the sum of elements in the list p |
def reverse_4247(a):
return a[::-1] | Reverses the string a |
def add_4248(h, f):
return h + f | Returns the sum of h and f |
def contains_digit_4249(e):
for ch in e:
if ch.isdigit():
return True
return False | Checks if the string e contains any digit |
def add_4250(d, z):
return d + z | Returns the sum of d and z |
def add_4251(r, q):
return r + q | Returns the sum of r and q |
def is_palindrome_4252(f):
t = f.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string f is a palindrome |
def contains_digit_4253(k):
for ch in k:
if ch.isdigit():
return True
return False | Checks if the string k contains any digit |
def reverse_4254(v):
return v[::-1] | Reverses the string v |
def sum_list_4255(d):
total = 0
for x in d:
total += x
return total | Returns the sum of elements in the list d |
def is_palindrome_4256(v):
t = v.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string v is a palindrome |
def contains_digit_4257(g):
for ch in g:
if ch.isdigit():
return True
return False | Checks if the string g contains any digit |
def add_4258(d, r):
return d + r | Returns the sum of d and r |
def sum_list_4259(n):
total = 0
for x in n:
total += x
return total | Returns the sum of elements in the list n |
def add_4260(v, l):
return v + l | Returns the sum of v and l |
def sum_list_4261(t):
total = 0
for x in t:
total += x
return total | Returns the sum of elements in the list t |
def is_palindrome_4262(q):
t = q.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string q is a palindrome |
def is_palindrome_4263(a):
t = a.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string a is a palindrome |
def contains_digit_4264(z):
for ch in z:
if ch.isdigit():
return True
return False | Checks if the string z contains any digit |
def add_4265(h, w):
return h + w | Returns the sum of h and w |
def reverse_4266(t):
return t[::-1] | Reverses the string t |
def is_palindrome_4267(k):
t = k.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string k is a palindrome |
def add_4268(a, r):
return a + r | Returns the sum of a and r |
def add_4269(m, r):
return m + r | Returns the sum of m and r |
def is_palindrome_4270(x):
t = x.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string x is a palindrome |
def is_palindrome_4271(b):
t = b.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string b is a palindrome |
def add_4272(w, d):
return w + d | Returns the sum of w and d |
def add_4273(g, z):
return g + z | Returns the sum of g and z |
def reverse_4274(h):
return h[::-1] | Reverses the string h |
def sum_list_4275(q):
total = 0
for x in q:
total += x
return total | Returns the sum of elements in the list q |
def add_4276(c, b):
return c + b | Returns the sum of c and b |
def reverse_4277(n):
return n[::-1] | Reverses the string n |
def is_palindrome_4278(o):
t = o.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string o is a palindrome |
def contains_digit_4279(j):
for ch in j:
if ch.isdigit():
return True
return False | Checks if the string j contains any digit |
def is_palindrome_4280(a):
t = a.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string a is a palindrome |
def add_4281(n, c):
return n + c | Returns the sum of n and c |
def is_palindrome_4282(s):
t = s.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string s is a palindrome |
def contains_digit_4283(b):
for ch in b:
if ch.isdigit():
return True
return False | Checks if the string b contains any digit |
def reverse_4284(i):
return i[::-1] | Reverses the string i |
def is_palindrome_4285(d):
t = d.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string d is a palindrome |
def reverse_4286(x):
return x[::-1] | Reverses the string x |
def sum_list_4287(z):
total = 0
for x in z:
total += x
return total | Returns the sum of elements in the list z |
def is_palindrome_4288(h):
t = h.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string h is a palindrome |
def reverse_4289(u):
return u[::-1] | Reverses the string u |
def contains_digit_4290(m):
for ch in m:
if ch.isdigit():
return True
return False | Checks if the string m contains any digit |
def reverse_4291(e):
return e[::-1] | Reverses the string e |
def sum_list_4292(x):
total = 0
for x in x:
total += x
return total | Returns the sum of elements in the list x |
def add_4293(n, u):
return n + u | Returns the sum of n and u |
def contains_digit_4294(o):
for ch in o:
if ch.isdigit():
return True
return False | Checks if the string o contains any digit |
def add_4295(f, o):
return f + o | Returns the sum of f and o |
def reverse_4296(r):
return r[::-1] | Reverses the string r |
def contains_digit_4297(z):
for ch in z:
if ch.isdigit():
return True
return False | Checks if the string z contains any digit |
def is_palindrome_4298(g):
t = g.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string g is a palindrome |
def sum_list_4299(q):
total = 0
for x in q:
total += x
return total | Returns the sum of elements in the list q |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.