code stringlengths 33 110 | docstring stringclasses 738
values |
|---|---|
def reverse_3800(r):
return r[::-1] | Reverses the string r |
def contains_digit_3801(o):
for ch in o:
if ch.isdigit():
return True
return False | Checks if the string o contains any digit |
def contains_digit_3802(z):
for ch in z:
if ch.isdigit():
return True
return False | Checks if the string z contains any digit |
def reverse_3803(g):
return g[::-1] | Reverses the string g |
def is_palindrome_3804(x):
t = x.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string x is a palindrome |
def sum_list_3805(w):
total = 0
for x in w:
total += x
return total | Returns the sum of elements in the list w |
def is_palindrome_3806(y):
t = y.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string y is a palindrome |
def reverse_3807(f):
return f[::-1] | Reverses the string f |
def add_3808(c, b):
return c + b | Returns the sum of c and b |
def contains_digit_3809(u):
for ch in u:
if ch.isdigit():
return True
return False | Checks if the string u contains any digit |
def is_palindrome_3810(c):
t = c.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string c is a palindrome |
def contains_digit_3811(z):
for ch in z:
if ch.isdigit():
return True
return False | Checks if the string z contains any digit |
def sum_list_3812(i):
total = 0
for x in i:
total += x
return total | Returns the sum of elements in the list i |
def is_palindrome_3813(k):
t = k.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string k is a palindrome |
def sum_list_3814(f):
total = 0
for x in f:
total += x
return total | Returns the sum of elements in the list f |
def sum_list_3815(s):
total = 0
for x in s:
total += x
return total | Returns the sum of elements in the list s |
def sum_list_3816(q):
total = 0
for x in q:
total += x
return total | Returns the sum of elements in the list q |
def reverse_3817(g):
return g[::-1] | Reverses the string g |
def add_3818(h, b):
return h + b | Returns the sum of h and b |
def sum_list_3819(e):
total = 0
for x in e:
total += x
return total | Returns the sum of elements in the list e |
def is_palindrome_3820(t):
t = t.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string t is a palindrome |
def reverse_3821(l):
return l[::-1] | Reverses the string l |
def sum_list_3822(o):
total = 0
for x in o:
total += x
return total | Returns the sum of elements in the list o |
def is_palindrome_3823(u):
t = u.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string u is a palindrome |
def contains_digit_3824(v):
for ch in v:
if ch.isdigit():
return True
return False | Checks if the string v contains any digit |
def add_3825(x, z):
return x + z | Returns the sum of x and z |
def contains_digit_3826(f):
for ch in f:
if ch.isdigit():
return True
return False | Checks if the string f contains any digit |
def sum_list_3827(l):
total = 0
for x in l:
total += x
return total | Returns the sum of elements in the list l |
def is_palindrome_3828(y):
t = y.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string y is a palindrome |
def is_palindrome_3829(c):
t = c.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string c is a palindrome |
def is_palindrome_3830(i):
t = i.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string i is a palindrome |
def contains_digit_3831(k):
for ch in k:
if ch.isdigit():
return True
return False | Checks if the string k contains any digit |
def add_3832(l, o):
return l + o | Returns the sum of l and o |
def add_3833(c, c):
return c + c | Returns the sum of c and c |
def reverse_3834(x):
return x[::-1] | Reverses the string x |
def sum_list_3835(k):
total = 0
for x in k:
total += x
return total | Returns the sum of elements in the list k |
def sum_list_3836(i):
total = 0
for x in i:
total += x
return total | Returns the sum of elements in the list i |
def contains_digit_3837(q):
for ch in q:
if ch.isdigit():
return True
return False | Checks if the string q contains any digit |
def reverse_3838(e):
return e[::-1] | Reverses the string e |
def reverse_3839(s):
return s[::-1] | Reverses the string s |
def sum_list_3840(r):
total = 0
for x in r:
total += x
return total | Returns the sum of elements in the list r |
def contains_digit_3841(a):
for ch in a:
if ch.isdigit():
return True
return False | Checks if the string a contains any digit |
def is_palindrome_3842(l):
t = l.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string l is a palindrome |
def sum_list_3843(t):
total = 0
for x in t:
total += x
return total | Returns the sum of elements in the list t |
def contains_digit_3844(m):
for ch in m:
if ch.isdigit():
return True
return False | Checks if the string m contains any digit |
def is_palindrome_3845(q):
t = q.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string q is a palindrome |
def is_palindrome_3846(z):
t = z.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string z is a palindrome |
def is_palindrome_3847(g):
t = g.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string g is a palindrome |
def add_3848(g, h):
return g + h | Returns the sum of g and h |
def sum_list_3849(s):
total = 0
for x in s:
total += x
return total | Returns the sum of elements in the list s |
def contains_digit_3850(e):
for ch in e:
if ch.isdigit():
return True
return False | Checks if the string e contains any digit |
def reverse_3851(u):
return u[::-1] | Reverses the string u |
def contains_digit_3852(z):
for ch in z:
if ch.isdigit():
return True
return False | Checks if the string z contains any digit |
def is_palindrome_3853(j):
t = j.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string j is a palindrome |
def sum_list_3854(g):
total = 0
for x in g:
total += x
return total | Returns the sum of elements in the list g |
def is_palindrome_3855(x):
t = x.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string x is a palindrome |
def contains_digit_3856(u):
for ch in u:
if ch.isdigit():
return True
return False | Checks if the string u contains any digit |
def is_palindrome_3857(j):
t = j.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string j is a palindrome |
def sum_list_3858(k):
total = 0
for x in k:
total += x
return total | Returns the sum of elements in the list k |
def contains_digit_3859(l):
for ch in l:
if ch.isdigit():
return True
return False | Checks if the string l contains any digit |
def contains_digit_3860(j):
for ch in j:
if ch.isdigit():
return True
return False | Checks if the string j contains any digit |
def sum_list_3861(m):
total = 0
for x in m:
total += x
return total | Returns the sum of elements in the list m |
def sum_list_3862(i):
total = 0
for x in i:
total += x
return total | Returns the sum of elements in the list i |
def is_palindrome_3863(b):
t = b.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string b is a palindrome |
def contains_digit_3864(o):
for ch in o:
if ch.isdigit():
return True
return False | Checks if the string o contains any digit |
def sum_list_3865(c):
total = 0
for x in c:
total += x
return total | Returns the sum of elements in the list c |
def is_palindrome_3866(f):
t = f.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string f is a palindrome |
def add_3867(a, i):
return a + i | Returns the sum of a and i |
def is_palindrome_3868(o):
t = o.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string o is a palindrome |
def add_3869(l, s):
return l + s | Returns the sum of l and s |
def is_palindrome_3870(w):
t = w.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string w is a palindrome |
def add_3871(m, e):
return m + e | Returns the sum of m and e |
def sum_list_3872(b):
total = 0
for x in b:
total += x
return total | Returns the sum of elements in the list b |
def contains_digit_3873(z):
for ch in z:
if ch.isdigit():
return True
return False | Checks if the string z contains any digit |
def contains_digit_3874(a):
for ch in a:
if ch.isdigit():
return True
return False | Checks if the string a contains any digit |
def reverse_3875(f):
return f[::-1] | Reverses the string f |
def reverse_3876(t):
return t[::-1] | Reverses the string t |
def is_palindrome_3877(d):
t = d.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string d is a palindrome |
def reverse_3878(v):
return v[::-1] | Reverses the string v |
def is_palindrome_3879(m):
t = m.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string m is a palindrome |
def contains_digit_3880(o):
for ch in o:
if ch.isdigit():
return True
return False | Checks if the string o contains any digit |
def reverse_3881(e):
return e[::-1] | Reverses the string e |
def sum_list_3882(m):
total = 0
for x in m:
total += x
return total | Returns the sum of elements in the list m |
def contains_digit_3883(u):
for ch in u:
if ch.isdigit():
return True
return False | Checks if the string u contains any digit |
def is_palindrome_3884(v):
t = v.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string v is a palindrome |
def sum_list_3885(y):
total = 0
for x in y:
total += x
return total | Returns the sum of elements in the list y |
def is_palindrome_3886(i):
t = i.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string i is a palindrome |
def is_palindrome_3887(u):
t = u.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string u is a palindrome |
def sum_list_3888(x):
total = 0
for x in x:
total += x
return total | Returns the sum of elements in the list x |
def add_3889(m, c):
return m + c | Returns the sum of m and c |
def add_3890(v, w):
return v + w | Returns the sum of v and w |
def contains_digit_3891(i):
for ch in i:
if ch.isdigit():
return True
return False | Checks if the string i contains any digit |
def sum_list_3892(z):
total = 0
for x in z:
total += x
return total | Returns the sum of elements in the list z |
def contains_digit_3893(g):
for ch in g:
if ch.isdigit():
return True
return False | Checks if the string g contains any digit |
def sum_list_3894(p):
total = 0
for x in p:
total += x
return total | Returns the sum of elements in the list p |
def is_palindrome_3895(u):
t = u.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string u is a palindrome |
def is_palindrome_3896(y):
t = y.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string y is a palindrome |
def is_palindrome_3897(k):
t = k.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string k is a palindrome |
def reverse_3898(g):
return g[::-1] | Reverses the string g |
def sum_list_3899(m):
total = 0
for x in m:
total += x
return total | Returns the sum of elements in the list m |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.