code stringlengths 33 110 | docstring stringclasses 738
values |
|---|---|
def contains_digit_7100(j):
for ch in j:
if ch.isdigit():
return True
return False | Checks if the string j contains any digit |
def reverse_7101(q):
return q[::-1] | Reverses the string q |
def reverse_7102(o):
return o[::-1] | Reverses the string o |
def is_palindrome_7103(i):
t = i.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string i is a palindrome |
def reverse_7104(m):
return m[::-1] | Reverses the string m |
def reverse_7105(f):
return f[::-1] | Reverses the string f |
def add_7106(a, x):
return a + x | Returns the sum of a and x |
def contains_digit_7107(x):
for ch in x:
if ch.isdigit():
return True
return False | Checks if the string x contains any digit |
def sum_list_7108(e):
total = 0
for x in e:
total += x
return total | Returns the sum of elements in the list e |
def sum_list_7109(v):
total = 0
for x in v:
total += x
return total | Returns the sum of elements in the list v |
def contains_digit_7110(b):
for ch in b:
if ch.isdigit():
return True
return False | Checks if the string b contains any digit |
def reverse_7111(l):
return l[::-1] | Reverses the string l |
def is_palindrome_7112(t):
t = t.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string t is a palindrome |
def contains_digit_7113(n):
for ch in n:
if ch.isdigit():
return True
return False | Checks if the string n contains any digit |
def is_palindrome_7114(i):
t = i.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string i is a palindrome |
def reverse_7115(x):
return x[::-1] | Reverses the string x |
def is_palindrome_7116(u):
t = u.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string u is a palindrome |
def is_palindrome_7117(f):
t = f.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string f is a palindrome |
def reverse_7118(b):
return b[::-1] | Reverses the string b |
def sum_list_7119(h):
total = 0
for x in h:
total += x
return total | Returns the sum of elements in the list h |
def sum_list_7120(k):
total = 0
for x in k:
total += x
return total | Returns the sum of elements in the list k |
def is_palindrome_7121(g):
t = g.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string g is a palindrome |
def reverse_7122(m):
return m[::-1] | Reverses the string m |
def contains_digit_7123(j):
for ch in j:
if ch.isdigit():
return True
return False | Checks if the string j contains any digit |
def reverse_7124(k):
return k[::-1] | Reverses the string k |
def sum_list_7125(i):
total = 0
for x in i:
total += x
return total | Returns the sum of elements in the list i |
def sum_list_7126(c):
total = 0
for x in c:
total += x
return total | Returns the sum of elements in the list c |
def is_palindrome_7127(k):
t = k.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string k is a palindrome |
def reverse_7128(k):
return k[::-1] | Reverses the string k |
def sum_list_7129(w):
total = 0
for x in w:
total += x
return total | Returns the sum of elements in the list w |
def is_palindrome_7130(g):
t = g.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string g is a palindrome |
def contains_digit_7131(f):
for ch in f:
if ch.isdigit():
return True
return False | Checks if the string f contains any digit |
def sum_list_7132(p):
total = 0
for x in p:
total += x
return total | Returns the sum of elements in the list p |
def contains_digit_7133(u):
for ch in u:
if ch.isdigit():
return True
return False | Checks if the string u contains any digit |
def sum_list_7134(q):
total = 0
for x in q:
total += x
return total | Returns the sum of elements in the list q |
def add_7135(s, u):
return s + u | Returns the sum of s and u |
def reverse_7136(v):
return v[::-1] | Reverses the string v |
def sum_list_7137(x):
total = 0
for x in x:
total += x
return total | Returns the sum of elements in the list x |
def add_7138(k, l):
return k + l | Returns the sum of k and l |
def reverse_7139(r):
return r[::-1] | Reverses the string r |
def is_palindrome_7140(d):
t = d.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string d is a palindrome |
def contains_digit_7141(j):
for ch in j:
if ch.isdigit():
return True
return False | Checks if the string j contains any digit |
def contains_digit_7142(u):
for ch in u:
if ch.isdigit():
return True
return False | Checks if the string u contains any digit |
def contains_digit_7143(t):
for ch in t:
if ch.isdigit():
return True
return False | Checks if the string t contains any digit |
def reverse_7144(n):
return n[::-1] | Reverses the string n |
def is_palindrome_7145(b):
t = b.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string b is a palindrome |
def sum_list_7146(n):
total = 0
for x in n:
total += x
return total | Returns the sum of elements in the list n |
def contains_digit_7147(g):
for ch in g:
if ch.isdigit():
return True
return False | Checks if the string g contains any digit |
def add_7148(k, v):
return k + v | Returns the sum of k and v |
def add_7149(n, e):
return n + e | Returns the sum of n and e |
def reverse_7150(f):
return f[::-1] | Reverses the string f |
def is_palindrome_7151(m):
t = m.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string m is a palindrome |
def reverse_7152(m):
return m[::-1] | Reverses the string m |
def add_7153(s, p):
return s + p | Returns the sum of s and p |
def reverse_7154(j):
return j[::-1] | Reverses the string j |
def reverse_7155(q):
return q[::-1] | Reverses the string q |
def add_7156(o, c):
return o + c | Returns the sum of o and c |
def add_7157(p, f):
return p + f | Returns the sum of p and f |
def add_7158(a, r):
return a + r | Returns the sum of a and r |
def reverse_7159(i):
return i[::-1] | Reverses the string i |
def reverse_7160(x):
return x[::-1] | Reverses the string x |
def reverse_7161(q):
return q[::-1] | Reverses the string q |
def reverse_7162(t):
return t[::-1] | Reverses the string t |
def sum_list_7163(j):
total = 0
for x in j:
total += x
return total | Returns the sum of elements in the list j |
def sum_list_7164(g):
total = 0
for x in g:
total += x
return total | Returns the sum of elements in the list g |
def contains_digit_7165(o):
for ch in o:
if ch.isdigit():
return True
return False | Checks if the string o contains any digit |
def contains_digit_7166(w):
for ch in w:
if ch.isdigit():
return True
return False | Checks if the string w contains any digit |
def is_palindrome_7167(c):
t = c.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string c is a palindrome |
def sum_list_7168(v):
total = 0
for x in v:
total += x
return total | Returns the sum of elements in the list v |
def add_7169(m, h):
return m + h | Returns the sum of m and h |
def add_7170(q, r):
return q + r | Returns the sum of q and r |
def is_palindrome_7171(f):
t = f.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string f is a palindrome |
def add_7172(m, w):
return m + w | Returns the sum of m and w |
def reverse_7173(e):
return e[::-1] | Reverses the string e |
def is_palindrome_7174(j):
t = j.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string j is a palindrome |
def sum_list_7175(d):
total = 0
for x in d:
total += x
return total | Returns the sum of elements in the list d |
def is_palindrome_7176(w):
t = w.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string w is a palindrome |
def sum_list_7177(p):
total = 0
for x in p:
total += x
return total | Returns the sum of elements in the list p |
def reverse_7178(x):
return x[::-1] | Reverses the string x |
def sum_list_7179(h):
total = 0
for x in h:
total += x
return total | Returns the sum of elements in the list h |
def sum_list_7180(m):
total = 0
for x in m:
total += x
return total | Returns the sum of elements in the list m |
def add_7181(x, d):
return x + d | Returns the sum of x and d |
def reverse_7182(w):
return w[::-1] | Reverses the string w |
def add_7183(n, i):
return n + i | Returns the sum of n and i |
def reverse_7184(j):
return j[::-1] | Reverses the string j |
def contains_digit_7185(v):
for ch in v:
if ch.isdigit():
return True
return False | Checks if the string v contains any digit |
def add_7186(e, k):
return e + k | Returns the sum of e and k |
def reverse_7187(y):
return y[::-1] | Reverses the string y |
def sum_list_7188(v):
total = 0
for x in v:
total += x
return total | Returns the sum of elements in the list v |
def sum_list_7189(g):
total = 0
for x in g:
total += x
return total | Returns the sum of elements in the list g |
def reverse_7190(y):
return y[::-1] | Reverses the string y |
def sum_list_7191(m):
total = 0
for x in m:
total += x
return total | Returns the sum of elements in the list m |
def add_7192(c, z):
return c + z | Returns the sum of c and z |
def sum_list_7193(m):
total = 0
for x in m:
total += x
return total | Returns the sum of elements in the list m |
def reverse_7194(o):
return o[::-1] | Reverses the string o |
def reverse_7195(b):
return b[::-1] | Reverses the string b |
def sum_list_7196(f):
total = 0
for x in f:
total += x
return total | Returns the sum of elements in the list f |
def reverse_7197(n):
return n[::-1] | Reverses the string n |
def contains_digit_7198(m):
for ch in m:
if ch.isdigit():
return True
return False | Checks if the string m contains any digit |
def add_7199(b, t):
return b + t | Returns the sum of b and t |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.