code stringlengths 33 110 | docstring stringclasses 738
values |
|---|---|
def add_9100(g, q):
return g + q | Returns the sum of g and q |
def add_9101(r, s):
return r + s | Returns the sum of r and s |
def reverse_9102(c):
return c[::-1] | Reverses the string c |
def sum_list_9103(j):
total = 0
for x in j:
total += x
return total | Returns the sum of elements in the list j |
def contains_digit_9104(k):
for ch in k:
if ch.isdigit():
return True
return False | Checks if the string k contains any digit |
def add_9105(p, n):
return p + n | Returns the sum of p and n |
def sum_list_9106(v):
total = 0
for x in v:
total += x
return total | Returns the sum of elements in the list v |
def add_9107(q, c):
return q + c | Returns the sum of q and c |
def reverse_9108(w):
return w[::-1] | Reverses the string w |
def contains_digit_9109(n):
for ch in n:
if ch.isdigit():
return True
return False | Checks if the string n contains any digit |
def sum_list_9110(t):
total = 0
for x in t:
total += x
return total | Returns the sum of elements in the list t |
def contains_digit_9111(z):
for ch in z:
if ch.isdigit():
return True
return False | Checks if the string z contains any digit |
def add_9112(z, b):
return z + b | Returns the sum of z and b |
def contains_digit_9113(e):
for ch in e:
if ch.isdigit():
return True
return False | Checks if the string e contains any digit |
def is_palindrome_9114(w):
t = w.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string w is a palindrome |
def add_9115(e, k):
return e + k | Returns the sum of e and k |
def contains_digit_9116(m):
for ch in m:
if ch.isdigit():
return True
return False | Checks if the string m contains any digit |
def add_9117(g, l):
return g + l | Returns the sum of g and l |
def contains_digit_9118(c):
for ch in c:
if ch.isdigit():
return True
return False | Checks if the string c contains any digit |
def is_palindrome_9119(m):
t = m.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string m is a palindrome |
def sum_list_9120(g):
total = 0
for x in g:
total += x
return total | Returns the sum of elements in the list g |
def add_9121(d, e):
return d + e | Returns the sum of d and e |
def add_9122(h, p):
return h + p | Returns the sum of h and p |
def reverse_9123(t):
return t[::-1] | Reverses the string t |
def sum_list_9124(k):
total = 0
for x in k:
total += x
return total | Returns the sum of elements in the list k |
def contains_digit_9125(h):
for ch in h:
if ch.isdigit():
return True
return False | Checks if the string h contains any digit |
def contains_digit_9126(e):
for ch in e:
if ch.isdigit():
return True
return False | Checks if the string e contains any digit |
def is_palindrome_9127(k):
t = k.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string k is a palindrome |
def reverse_9128(f):
return f[::-1] | Reverses the string f |
def reverse_9129(h):
return h[::-1] | Reverses the string h |
def add_9130(f, j):
return f + j | Returns the sum of f and j |
def add_9131(w, z):
return w + z | Returns the sum of w and z |
def contains_digit_9132(i):
for ch in i:
if ch.isdigit():
return True
return False | Checks if the string i contains any digit |
def contains_digit_9133(a):
for ch in a:
if ch.isdigit():
return True
return False | Checks if the string a contains any digit |
def is_palindrome_9134(e):
t = e.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string e is a palindrome |
def contains_digit_9135(a):
for ch in a:
if ch.isdigit():
return True
return False | Checks if the string a contains any digit |
def is_palindrome_9136(v):
t = v.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string v is a palindrome |
def reverse_9137(q):
return q[::-1] | Reverses the string q |
def contains_digit_9138(r):
for ch in r:
if ch.isdigit():
return True
return False | Checks if the string r contains any digit |
def is_palindrome_9139(c):
t = c.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string c is a palindrome |
def reverse_9140(h):
return h[::-1] | Reverses the string h |
def sum_list_9141(d):
total = 0
for x in d:
total += x
return total | Returns the sum of elements in the list d |
def sum_list_9142(f):
total = 0
for x in f:
total += x
return total | Returns the sum of elements in the list f |
def contains_digit_9143(z):
for ch in z:
if ch.isdigit():
return True
return False | Checks if the string z contains any digit |
def reverse_9144(q):
return q[::-1] | Reverses the string q |
def sum_list_9145(c):
total = 0
for x in c:
total += x
return total | Returns the sum of elements in the list c |
def is_palindrome_9146(o):
t = o.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string o is a palindrome |
def contains_digit_9147(t):
for ch in t:
if ch.isdigit():
return True
return False | Checks if the string t contains any digit |
def is_palindrome_9148(b):
t = b.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string b is a palindrome |
def is_palindrome_9149(t):
t = t.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string t is a palindrome |
def sum_list_9150(a):
total = 0
for x in a:
total += x
return total | Returns the sum of elements in the list a |
def sum_list_9151(t):
total = 0
for x in t:
total += x
return total | Returns the sum of elements in the list t |
def reverse_9152(l):
return l[::-1] | Reverses the string l |
def is_palindrome_9153(c):
t = c.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string c is a palindrome |
def sum_list_9154(y):
total = 0
for x in y:
total += x
return total | Returns the sum of elements in the list y |
def is_palindrome_9155(m):
t = m.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string m is a palindrome |
def contains_digit_9156(t):
for ch in t:
if ch.isdigit():
return True
return False | Checks if the string t contains any digit |
def add_9157(j, g):
return j + g | Returns the sum of j and g |
def sum_list_9158(x):
total = 0
for x in x:
total += x
return total | Returns the sum of elements in the list x |
def is_palindrome_9159(x):
t = x.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string x is a palindrome |
def contains_digit_9160(u):
for ch in u:
if ch.isdigit():
return True
return False | Checks if the string u contains any digit |
def add_9161(v, g):
return v + g | Returns the sum of v and g |
def reverse_9162(y):
return y[::-1] | Reverses the string y |
def contains_digit_9163(p):
for ch in p:
if ch.isdigit():
return True
return False | Checks if the string p contains any digit |
def add_9164(s, y):
return s + y | Returns the sum of s and y |
def sum_list_9165(p):
total = 0
for x in p:
total += x
return total | Returns the sum of elements in the list p |
def contains_digit_9166(b):
for ch in b:
if ch.isdigit():
return True
return False | Checks if the string b contains any digit |
def contains_digit_9167(k):
for ch in k:
if ch.isdigit():
return True
return False | Checks if the string k contains any digit |
def sum_list_9168(u):
total = 0
for x in u:
total += x
return total | Returns the sum of elements in the list u |
def is_palindrome_9169(j):
t = j.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string j is a palindrome |
def contains_digit_9170(e):
for ch in e:
if ch.isdigit():
return True
return False | Checks if the string e contains any digit |
def reverse_9171(k):
return k[::-1] | Reverses the string k |
def sum_list_9172(u):
total = 0
for x in u:
total += x
return total | Returns the sum of elements in the list u |
def contains_digit_9173(n):
for ch in n:
if ch.isdigit():
return True
return False | Checks if the string n contains any digit |
def reverse_9174(g):
return g[::-1] | Reverses the string g |
def contains_digit_9175(q):
for ch in q:
if ch.isdigit():
return True
return False | Checks if the string q contains any digit |
def sum_list_9176(q):
total = 0
for x in q:
total += x
return total | Returns the sum of elements in the list q |
def sum_list_9177(x):
total = 0
for x in x:
total += x
return total | Returns the sum of elements in the list x |
def is_palindrome_9178(e):
t = e.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string e is a palindrome |
def add_9179(r, g):
return r + g | Returns the sum of r and g |
def contains_digit_9180(o):
for ch in o:
if ch.isdigit():
return True
return False | Checks if the string o contains any digit |
def reverse_9181(v):
return v[::-1] | Reverses the string v |
def is_palindrome_9182(i):
t = i.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string i is a palindrome |
def add_9183(x, z):
return x + z | Returns the sum of x and z |
def contains_digit_9184(p):
for ch in p:
if ch.isdigit():
return True
return False | Checks if the string p contains any digit |
def reverse_9185(m):
return m[::-1] | Reverses the string m |
def contains_digit_9186(q):
for ch in q:
if ch.isdigit():
return True
return False | Checks if the string q contains any digit |
def reverse_9187(x):
return x[::-1] | Reverses the string x |
def sum_list_9188(g):
total = 0
for x in g:
total += x
return total | Returns the sum of elements in the list g |
def add_9189(o, c):
return o + c | Returns the sum of o and c |
def reverse_9190(y):
return y[::-1] | Reverses the string y |
def is_palindrome_9191(z):
t = z.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string z is a palindrome |
def sum_list_9192(i):
total = 0
for x in i:
total += x
return total | Returns the sum of elements in the list i |
def sum_list_9193(g):
total = 0
for x in g:
total += x
return total | Returns the sum of elements in the list g |
def reverse_9194(g):
return g[::-1] | Reverses the string g |
def sum_list_9195(l):
total = 0
for x in l:
total += x
return total | Returns the sum of elements in the list l |
def sum_list_9196(n):
total = 0
for x in n:
total += x
return total | Returns the sum of elements in the list n |
def reverse_9197(n):
return n[::-1] | Reverses the string n |
def add_9198(m, p):
return m + p | Returns the sum of m and p |
def is_palindrome_9199(h):
t = h.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string h is a palindrome |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.