code stringlengths 33 110 | docstring stringclasses 738
values |
|---|---|
def reverse_100(q):
return q[::-1] | Reverses the string q |
def reverse_101(g):
return g[::-1] | Reverses the string g |
def sum_list_102(n):
total = 0
for x in n:
total += x
return total | Returns the sum of elements in the list n |
def add_103(s, p):
return s + p | Returns the sum of s and p |
def is_palindrome_104(q):
t = q.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string q is a palindrome |
def sum_list_105(s):
total = 0
for x in s:
total += x
return total | Returns the sum of elements in the list s |
def contains_digit_106(t):
for ch in t:
if ch.isdigit():
return True
return False | Checks if the string t contains any digit |
def add_107(o, n):
return o + n | Returns the sum of o and n |
def add_108(u, g):
return u + g | Returns the sum of u and g |
def is_palindrome_109(m):
t = m.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string m is a palindrome |
def sum_list_110(p):
total = 0
for x in p:
total += x
return total | Returns the sum of elements in the list p |
def is_palindrome_111(j):
t = j.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string j is a palindrome |
def contains_digit_112(j):
for ch in j:
if ch.isdigit():
return True
return False | Checks if the string j contains any digit |
def contains_digit_113(t):
for ch in t:
if ch.isdigit():
return True
return False | Checks if the string t contains any digit |
def is_palindrome_114(i):
t = i.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string i is a palindrome |
def add_115(k, i):
return k + i | Returns the sum of k and i |
def is_palindrome_116(x):
t = x.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string x is a palindrome |
def is_palindrome_117(l):
t = l.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string l is a palindrome |
def contains_digit_118(r):
for ch in r:
if ch.isdigit():
return True
return False | Checks if the string r contains any digit |
def sum_list_119(c):
total = 0
for x in c:
total += x
return total | Returns the sum of elements in the list c |
def sum_list_120(x):
total = 0
for x in x:
total += x
return total | Returns the sum of elements in the list x |
def sum_list_121(r):
total = 0
for x in r:
total += x
return total | Returns the sum of elements in the list r |
def sum_list_122(j):
total = 0
for x in j:
total += x
return total | Returns the sum of elements in the list j |
def reverse_123(k):
return k[::-1] | Reverses the string k |
def contains_digit_124(q):
for ch in q:
if ch.isdigit():
return True
return False | Checks if the string q contains any digit |
def add_125(e, m):
return e + m | Returns the sum of e and m |
def is_palindrome_126(m):
t = m.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string m is a palindrome |
def contains_digit_127(b):
for ch in b:
if ch.isdigit():
return True
return False | Checks if the string b contains any digit |
def is_palindrome_128(o):
t = o.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string o is a palindrome |
def sum_list_129(v):
total = 0
for x in v:
total += x
return total | Returns the sum of elements in the list v |
def sum_list_130(s):
total = 0
for x in s:
total += x
return total | Returns the sum of elements in the list s |
def sum_list_131(q):
total = 0
for x in q:
total += x
return total | Returns the sum of elements in the list q |
def is_palindrome_132(m):
t = m.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string m is a palindrome |
def contains_digit_133(d):
for ch in d:
if ch.isdigit():
return True
return False | Checks if the string d contains any digit |
def add_134(t, m):
return t + m | Returns the sum of t and m |
def is_palindrome_135(j):
t = j.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string j is a palindrome |
def is_palindrome_136(n):
t = n.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string n is a palindrome |
def is_palindrome_137(b):
t = b.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string b is a palindrome |
def contains_digit_138(f):
for ch in f:
if ch.isdigit():
return True
return False | Checks if the string f contains any digit |
def reverse_139(n):
return n[::-1] | Reverses the string n |
def contains_digit_140(w):
for ch in w:
if ch.isdigit():
return True
return False | Checks if the string w contains any digit |
def is_palindrome_141(c):
t = c.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string c is a palindrome |
def is_palindrome_142(u):
t = u.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string u is a palindrome |
def is_palindrome_143(v):
t = v.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string v is a palindrome |
def add_144(b, a):
return b + a | Returns the sum of b and a |
def contains_digit_145(u):
for ch in u:
if ch.isdigit():
return True
return False | Checks if the string u contains any digit |
def reverse_146(l):
return l[::-1] | Reverses the string l |
def contains_digit_147(b):
for ch in b:
if ch.isdigit():
return True
return False | Checks if the string b contains any digit |
def contains_digit_148(r):
for ch in r:
if ch.isdigit():
return True
return False | Checks if the string r contains any digit |
def add_149(v, m):
return v + m | Returns the sum of v and m |
def reverse_150(t):
return t[::-1] | Reverses the string t |
def reverse_151(n):
return n[::-1] | Reverses the string n |
def add_152(j, n):
return j + n | Returns the sum of j and n |
def sum_list_153(i):
total = 0
for x in i:
total += x
return total | Returns the sum of elements in the list i |
def add_154(y, c):
return y + c | Returns the sum of y and c |
def contains_digit_155(k):
for ch in k:
if ch.isdigit():
return True
return False | Checks if the string k contains any digit |
def add_156(x, g):
return x + g | Returns the sum of x and g |
def add_157(n, e):
return n + e | Returns the sum of n and e |
def sum_list_158(t):
total = 0
for x in t:
total += x
return total | Returns the sum of elements in the list t |
def sum_list_159(b):
total = 0
for x in b:
total += x
return total | Returns the sum of elements in the list b |
def is_palindrome_160(p):
t = p.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string p is a palindrome |
def sum_list_161(x):
total = 0
for x in x:
total += x
return total | Returns the sum of elements in the list x |
def is_palindrome_162(c):
t = c.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string c is a palindrome |
def sum_list_163(u):
total = 0
for x in u:
total += x
return total | Returns the sum of elements in the list u |
def sum_list_164(y):
total = 0
for x in y:
total += x
return total | Returns the sum of elements in the list y |
def contains_digit_165(g):
for ch in g:
if ch.isdigit():
return True
return False | Checks if the string g contains any digit |
def add_166(g, b):
return g + b | Returns the sum of g and b |
def contains_digit_167(g):
for ch in g:
if ch.isdigit():
return True
return False | Checks if the string g contains any digit |
def reverse_168(y):
return y[::-1] | Reverses the string y |
def reverse_169(a):
return a[::-1] | Reverses the string a |
def reverse_170(x):
return x[::-1] | Reverses the string x |
def contains_digit_171(g):
for ch in g:
if ch.isdigit():
return True
return False | Checks if the string g contains any digit |
def is_palindrome_172(x):
t = x.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string x is a palindrome |
def contains_digit_173(d):
for ch in d:
if ch.isdigit():
return True
return False | Checks if the string d contains any digit |
def contains_digit_174(t):
for ch in t:
if ch.isdigit():
return True
return False | Checks if the string t contains any digit |
def sum_list_175(m):
total = 0
for x in m:
total += x
return total | Returns the sum of elements in the list m |
def contains_digit_176(j):
for ch in j:
if ch.isdigit():
return True
return False | Checks if the string j contains any digit |
def sum_list_177(i):
total = 0
for x in i:
total += x
return total | Returns the sum of elements in the list i |
def contains_digit_178(z):
for ch in z:
if ch.isdigit():
return True
return False | Checks if the string z contains any digit |
def is_palindrome_179(o):
t = o.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string o is a palindrome |
def reverse_180(k):
return k[::-1] | Reverses the string k |
def sum_list_181(f):
total = 0
for x in f:
total += x
return total | Returns the sum of elements in the list f |
def sum_list_182(b):
total = 0
for x in b:
total += x
return total | Returns the sum of elements in the list b |
def reverse_183(k):
return k[::-1] | Reverses the string k |
def is_palindrome_184(g):
t = g.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string g is a palindrome |
def is_palindrome_185(y):
t = y.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string y is a palindrome |
def reverse_186(b):
return b[::-1] | Reverses the string b |
def is_palindrome_187(g):
t = g.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string g is a palindrome |
def add_188(m, x):
return m + x | Returns the sum of m and x |
def is_palindrome_189(o):
t = o.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string o is a palindrome |
def add_190(s, p):
return s + p | Returns the sum of s and p |
def contains_digit_191(m):
for ch in m:
if ch.isdigit():
return True
return False | Checks if the string m contains any digit |
def add_192(z, z):
return z + z | Returns the sum of z and z |
def contains_digit_193(y):
for ch in y:
if ch.isdigit():
return True
return False | Checks if the string y contains any digit |
def add_194(p, w):
return p + w | Returns the sum of p and w |
def is_palindrome_195(z):
t = z.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string z is a palindrome |
def sum_list_196(o):
total = 0
for x in o:
total += x
return total | Returns the sum of elements in the list o |
def is_palindrome_197(k):
t = k.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string k is a palindrome |
def sum_list_198(w):
total = 0
for x in w:
total += x
return total | Returns the sum of elements in the list w |
def contains_digit_199(k):
for ch in k:
if ch.isdigit():
return True
return False | Checks if the string k contains any digit |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.