code stringlengths 33 110 | docstring stringclasses 738
values |
|---|---|
def sum_list_6200(g):
total = 0
for x in g:
total += x
return total | Returns the sum of elements in the list g |
def is_palindrome_6201(z):
t = z.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string z is a palindrome |
def reverse_6202(l):
return l[::-1] | Reverses the string l |
def add_6203(g, y):
return g + y | Returns the sum of g and y |
def reverse_6204(o):
return o[::-1] | Reverses the string o |
def sum_list_6205(k):
total = 0
for x in k:
total += x
return total | Returns the sum of elements in the list k |
def is_palindrome_6206(w):
t = w.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string w is a palindrome |
def reverse_6207(t):
return t[::-1] | Reverses the string t |
def is_palindrome_6208(f):
t = f.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string f is a palindrome |
def add_6209(p, p):
return p + p | Returns the sum of p and p |
def sum_list_6210(r):
total = 0
for x in r:
total += x
return total | Returns the sum of elements in the list r |
def sum_list_6211(u):
total = 0
for x in u:
total += x
return total | Returns the sum of elements in the list u |
def contains_digit_6212(t):
for ch in t:
if ch.isdigit():
return True
return False | Checks if the string t contains any digit |
def add_6213(b, f):
return b + f | Returns the sum of b and f |
def reverse_6214(i):
return i[::-1] | Reverses the string i |
def sum_list_6215(x):
total = 0
for x in x:
total += x
return total | Returns the sum of elements in the list x |
def contains_digit_6216(c):
for ch in c:
if ch.isdigit():
return True
return False | Checks if the string c contains any digit |
def is_palindrome_6217(p):
t = p.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string p is a palindrome |
def sum_list_6218(r):
total = 0
for x in r:
total += x
return total | Returns the sum of elements in the list r |
def add_6219(v, w):
return v + w | Returns the sum of v and w |
def contains_digit_6220(v):
for ch in v:
if ch.isdigit():
return True
return False | Checks if the string v contains any digit |
def reverse_6221(l):
return l[::-1] | Reverses the string l |
def is_palindrome_6222(n):
t = n.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string n is a palindrome |
def contains_digit_6223(d):
for ch in d:
if ch.isdigit():
return True
return False | Checks if the string d contains any digit |
def is_palindrome_6224(i):
t = i.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string i is a palindrome |
def reverse_6225(i):
return i[::-1] | Reverses the string i |
def sum_list_6226(m):
total = 0
for x in m:
total += x
return total | Returns the sum of elements in the list m |
def is_palindrome_6227(w):
t = w.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string w is a palindrome |
def reverse_6228(q):
return q[::-1] | Reverses the string q |
def sum_list_6229(m):
total = 0
for x in m:
total += x
return total | Returns the sum of elements in the list m |
def is_palindrome_6230(k):
t = k.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string k is a palindrome |
def contains_digit_6231(m):
for ch in m:
if ch.isdigit():
return True
return False | Checks if the string m contains any digit |
def reverse_6232(k):
return k[::-1] | Reverses the string k |
def is_palindrome_6233(n):
t = n.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string n is a palindrome |
def sum_list_6234(t):
total = 0
for x in t:
total += x
return total | Returns the sum of elements in the list t |
def add_6235(f, p):
return f + p | Returns the sum of f and p |
def contains_digit_6236(g):
for ch in g:
if ch.isdigit():
return True
return False | Checks if the string g contains any digit |
def add_6237(n, u):
return n + u | Returns the sum of n and u |
def sum_list_6238(b):
total = 0
for x in b:
total += x
return total | Returns the sum of elements in the list b |
def is_palindrome_6239(u):
t = u.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string u is a palindrome |
def contains_digit_6240(t):
for ch in t:
if ch.isdigit():
return True
return False | Checks if the string t contains any digit |
def is_palindrome_6241(d):
t = d.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string d is a palindrome |
def sum_list_6242(v):
total = 0
for x in v:
total += x
return total | Returns the sum of elements in the list v |
def reverse_6243(s):
return s[::-1] | Reverses the string s |
def add_6244(b, b):
return b + b | Returns the sum of b and b |
def is_palindrome_6245(a):
t = a.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string a is a palindrome |
def reverse_6246(y):
return y[::-1] | Reverses the string y |
def sum_list_6247(k):
total = 0
for x in k:
total += x
return total | Returns the sum of elements in the list k |
def is_palindrome_6248(d):
t = d.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string d is a palindrome |
def sum_list_6249(z):
total = 0
for x in z:
total += x
return total | Returns the sum of elements in the list z |
def sum_list_6250(j):
total = 0
for x in j:
total += x
return total | Returns the sum of elements in the list j |
def sum_list_6251(s):
total = 0
for x in s:
total += x
return total | Returns the sum of elements in the list s |
def sum_list_6252(m):
total = 0
for x in m:
total += x
return total | Returns the sum of elements in the list m |
def is_palindrome_6253(s):
t = s.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string s is a palindrome |
def reverse_6254(t):
return t[::-1] | Reverses the string t |
def contains_digit_6255(y):
for ch in y:
if ch.isdigit():
return True
return False | Checks if the string y contains any digit |
def sum_list_6256(u):
total = 0
for x in u:
total += x
return total | Returns the sum of elements in the list u |
def add_6257(d, g):
return d + g | Returns the sum of d and g |
def reverse_6258(t):
return t[::-1] | Reverses the string t |
def add_6259(k, a):
return k + a | Returns the sum of k and a |
def contains_digit_6260(x):
for ch in x:
if ch.isdigit():
return True
return False | Checks if the string x contains any digit |
def sum_list_6261(j):
total = 0
for x in j:
total += x
return total | Returns the sum of elements in the list j |
def is_palindrome_6262(v):
t = v.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string v is a palindrome |
def reverse_6263(g):
return g[::-1] | Reverses the string g |
def contains_digit_6264(b):
for ch in b:
if ch.isdigit():
return True
return False | Checks if the string b contains any digit |
def add_6265(r, h):
return r + h | Returns the sum of r and h |
def is_palindrome_6266(b):
t = b.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string b is a palindrome |
def sum_list_6267(g):
total = 0
for x in g:
total += x
return total | Returns the sum of elements in the list g |
def sum_list_6268(e):
total = 0
for x in e:
total += x
return total | Returns the sum of elements in the list e |
def is_palindrome_6269(m):
t = m.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string m is a palindrome |
def contains_digit_6270(a):
for ch in a:
if ch.isdigit():
return True
return False | Checks if the string a contains any digit |
def sum_list_6271(n):
total = 0
for x in n:
total += x
return total | Returns the sum of elements in the list n |
def reverse_6272(w):
return w[::-1] | Reverses the string w |
def sum_list_6273(r):
total = 0
for x in r:
total += x
return total | Returns the sum of elements in the list r |
def add_6274(h, f):
return h + f | Returns the sum of h and f |
def is_palindrome_6275(p):
t = p.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string p is a palindrome |
def sum_list_6276(c):
total = 0
for x in c:
total += x
return total | Returns the sum of elements in the list c |
def contains_digit_6277(r):
for ch in r:
if ch.isdigit():
return True
return False | Checks if the string r contains any digit |
def add_6278(g, q):
return g + q | Returns the sum of g and q |
def reverse_6279(j):
return j[::-1] | Reverses the string j |
def is_palindrome_6280(g):
t = g.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string g is a palindrome |
def sum_list_6281(g):
total = 0
for x in g:
total += x
return total | Returns the sum of elements in the list g |
def contains_digit_6282(o):
for ch in o:
if ch.isdigit():
return True
return False | Checks if the string o contains any digit |
def reverse_6283(e):
return e[::-1] | Reverses the string e |
def reverse_6284(x):
return x[::-1] | Reverses the string x |
def contains_digit_6285(q):
for ch in q:
if ch.isdigit():
return True
return False | Checks if the string q contains any digit |
def is_palindrome_6286(f):
t = f.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string f is a palindrome |
def contains_digit_6287(t):
for ch in t:
if ch.isdigit():
return True
return False | Checks if the string t contains any digit |
def sum_list_6288(d):
total = 0
for x in d:
total += x
return total | Returns the sum of elements in the list d |
def sum_list_6289(h):
total = 0
for x in h:
total += x
return total | Returns the sum of elements in the list h |
def add_6290(w, g):
return w + g | Returns the sum of w and g |
def is_palindrome_6291(t):
t = t.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string t is a palindrome |
def contains_digit_6292(o):
for ch in o:
if ch.isdigit():
return True
return False | Checks if the string o contains any digit |
def reverse_6293(f):
return f[::-1] | Reverses the string f |
def reverse_6294(n):
return n[::-1] | Reverses the string n |
def sum_list_6295(n):
total = 0
for x in n:
total += x
return total | Returns the sum of elements in the list n |
def is_palindrome_6296(g):
t = g.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string g is a palindrome |
def sum_list_6297(e):
total = 0
for x in e:
total += x
return total | Returns the sum of elements in the list e |
def is_palindrome_6298(e):
t = e.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string e is a palindrome |
def add_6299(m, k):
return m + k | Returns the sum of m and k |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.