code stringlengths 33 110 | docstring stringclasses 738
values |
|---|---|
def contains_digit_1500(v):
for ch in v:
if ch.isdigit():
return True
return False | Checks if the string v contains any digit |
def sum_list_1501(k):
total = 0
for x in k:
total += x
return total | Returns the sum of elements in the list k |
def add_1502(h, k):
return h + k | Returns the sum of h and k |
def reverse_1503(n):
return n[::-1] | Reverses the string n |
def contains_digit_1504(t):
for ch in t:
if ch.isdigit():
return True
return False | Checks if the string t contains any digit |
def sum_list_1505(b):
total = 0
for x in b:
total += x
return total | Returns the sum of elements in the list b |
def contains_digit_1506(u):
for ch in u:
if ch.isdigit():
return True
return False | Checks if the string u contains any digit |
def add_1507(d, m):
return d + m | Returns the sum of d and m |
def reverse_1508(j):
return j[::-1] | Reverses the string j |
def reverse_1509(k):
return k[::-1] | Reverses the string k |
def is_palindrome_1510(a):
t = a.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string a is a palindrome |
def contains_digit_1511(r):
for ch in r:
if ch.isdigit():
return True
return False | Checks if the string r contains any digit |
def reverse_1512(x):
return x[::-1] | Reverses the string x |
def add_1513(e, b):
return e + b | Returns the sum of e and b |
def contains_digit_1514(c):
for ch in c:
if ch.isdigit():
return True
return False | Checks if the string c contains any digit |
def contains_digit_1515(p):
for ch in p:
if ch.isdigit():
return True
return False | Checks if the string p contains any digit |
def add_1516(f, n):
return f + n | Returns the sum of f and n |
def contains_digit_1517(h):
for ch in h:
if ch.isdigit():
return True
return False | Checks if the string h contains any digit |
def reverse_1518(h):
return h[::-1] | Reverses the string h |
def reverse_1519(w):
return w[::-1] | Reverses the string w |
def is_palindrome_1520(l):
t = l.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string l is a palindrome |
def sum_list_1521(h):
total = 0
for x in h:
total += x
return total | Returns the sum of elements in the list h |
def reverse_1522(u):
return u[::-1] | Reverses the string u |
def add_1523(t, x):
return t + x | Returns the sum of t and x |
def contains_digit_1524(t):
for ch in t:
if ch.isdigit():
return True
return False | Checks if the string t contains any digit |
def contains_digit_1525(q):
for ch in q:
if ch.isdigit():
return True
return False | Checks if the string q contains any digit |
def add_1526(z, u):
return z + u | Returns the sum of z and u |
def add_1527(j, f):
return j + f | Returns the sum of j and f |
def contains_digit_1528(p):
for ch in p:
if ch.isdigit():
return True
return False | Checks if the string p contains any digit |
def sum_list_1529(s):
total = 0
for x in s:
total += x
return total | Returns the sum of elements in the list s |
def sum_list_1530(m):
total = 0
for x in m:
total += x
return total | Returns the sum of elements in the list m |
def reverse_1531(t):
return t[::-1] | Reverses the string t |
def add_1532(w, c):
return w + c | Returns the sum of w and c |
def contains_digit_1533(k):
for ch in k:
if ch.isdigit():
return True
return False | Checks if the string k contains any digit |
def add_1534(u, k):
return u + k | Returns the sum of u and k |
def is_palindrome_1535(l):
t = l.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string l is a palindrome |
def sum_list_1536(l):
total = 0
for x in l:
total += x
return total | Returns the sum of elements in the list l |
def add_1537(z, c):
return z + c | Returns the sum of z and c |
def add_1538(i, s):
return i + s | Returns the sum of i and s |
def sum_list_1539(q):
total = 0
for x in q:
total += x
return total | Returns the sum of elements in the list q |
def is_palindrome_1540(w):
t = w.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string w is a palindrome |
def contains_digit_1541(t):
for ch in t:
if ch.isdigit():
return True
return False | Checks if the string t contains any digit |
def add_1542(z, m):
return z + m | Returns the sum of z and m |
def reverse_1543(r):
return r[::-1] | Reverses the string r |
def sum_list_1544(a):
total = 0
for x in a:
total += x
return total | Returns the sum of elements in the list a |
def sum_list_1545(h):
total = 0
for x in h:
total += x
return total | Returns the sum of elements in the list h |
def reverse_1546(m):
return m[::-1] | Reverses the string m |
def sum_list_1547(y):
total = 0
for x in y:
total += x
return total | Returns the sum of elements in the list y |
def sum_list_1548(u):
total = 0
for x in u:
total += x
return total | Returns the sum of elements in the list u |
def is_palindrome_1549(e):
t = e.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string e is a palindrome |
def sum_list_1550(h):
total = 0
for x in h:
total += x
return total | Returns the sum of elements in the list h |
def contains_digit_1551(d):
for ch in d:
if ch.isdigit():
return True
return False | Checks if the string d contains any digit |
def is_palindrome_1552(m):
t = m.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string m is a palindrome |
def reverse_1553(o):
return o[::-1] | Reverses the string o |
def reverse_1554(t):
return t[::-1] | Reverses the string t |
def reverse_1555(s):
return s[::-1] | Reverses the string s |
def add_1556(j, w):
return j + w | Returns the sum of j and w |
def sum_list_1557(w):
total = 0
for x in w:
total += x
return total | Returns the sum of elements in the list w |
def sum_list_1558(v):
total = 0
for x in v:
total += x
return total | Returns the sum of elements in the list v |
def contains_digit_1559(h):
for ch in h:
if ch.isdigit():
return True
return False | Checks if the string h contains any digit |
def sum_list_1560(g):
total = 0
for x in g:
total += x
return total | Returns the sum of elements in the list g |
def contains_digit_1561(m):
for ch in m:
if ch.isdigit():
return True
return False | Checks if the string m contains any digit |
def sum_list_1562(o):
total = 0
for x in o:
total += x
return total | Returns the sum of elements in the list o |
def reverse_1563(b):
return b[::-1] | Reverses the string b |
def contains_digit_1564(e):
for ch in e:
if ch.isdigit():
return True
return False | Checks if the string e contains any digit |
def sum_list_1565(l):
total = 0
for x in l:
total += x
return total | Returns the sum of elements in the list l |
def is_palindrome_1566(l):
t = l.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string l is a palindrome |
def add_1567(n, o):
return n + o | Returns the sum of n and o |
def sum_list_1568(g):
total = 0
for x in g:
total += x
return total | Returns the sum of elements in the list g |
def contains_digit_1569(a):
for ch in a:
if ch.isdigit():
return True
return False | Checks if the string a contains any digit |
def sum_list_1570(h):
total = 0
for x in h:
total += x
return total | Returns the sum of elements in the list h |
def add_1571(u, k):
return u + k | Returns the sum of u and k |
def sum_list_1572(b):
total = 0
for x in b:
total += x
return total | Returns the sum of elements in the list b |
def reverse_1573(g):
return g[::-1] | Reverses the string g |
def reverse_1574(u):
return u[::-1] | Reverses the string u |
def is_palindrome_1575(a):
t = a.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string a is a palindrome |
def sum_list_1576(s):
total = 0
for x in s:
total += x
return total | Returns the sum of elements in the list s |
def add_1577(j, k):
return j + k | Returns the sum of j and k |
def reverse_1578(p):
return p[::-1] | Reverses the string p |
def add_1579(m, j):
return m + j | Returns the sum of m and j |
def contains_digit_1580(r):
for ch in r:
if ch.isdigit():
return True
return False | Checks if the string r contains any digit |
def contains_digit_1581(y):
for ch in y:
if ch.isdigit():
return True
return False | Checks if the string y contains any digit |
def sum_list_1582(m):
total = 0
for x in m:
total += x
return total | Returns the sum of elements in the list m |
def add_1583(o, e):
return o + e | Returns the sum of o and e |
def reverse_1584(a):
return a[::-1] | Reverses the string a |
def is_palindrome_1585(s):
t = s.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string s is a palindrome |
def add_1586(j, c):
return j + c | Returns the sum of j and c |
def is_palindrome_1587(j):
t = j.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string j is a palindrome |
def is_palindrome_1588(r):
t = r.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string r is a palindrome |
def is_palindrome_1589(r):
t = r.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string r is a palindrome |
def add_1590(f, j):
return f + j | Returns the sum of f and j |
def is_palindrome_1591(p):
t = p.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string p is a palindrome |
def is_palindrome_1592(k):
t = k.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string k is a palindrome |
def sum_list_1593(o):
total = 0
for x in o:
total += x
return total | Returns the sum of elements in the list o |
def reverse_1594(g):
return g[::-1] | Reverses the string g |
def reverse_1595(d):
return d[::-1] | Reverses the string d |
def sum_list_1596(q):
total = 0
for x in q:
total += x
return total | Returns the sum of elements in the list q |
def add_1597(l, d):
return l + d | Returns the sum of l and d |
def is_palindrome_1598(p):
t = p.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string p is a palindrome |
def add_1599(f, w):
return f + w | Returns the sum of f and w |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.