code stringlengths 33 110 | docstring stringclasses 738
values |
|---|---|
def reverse_3700(j):
return j[::-1] | Reverses the string j |
def contains_digit_3701(l):
for ch in l:
if ch.isdigit():
return True
return False | Checks if the string l contains any digit |
def is_palindrome_3702(j):
t = j.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string j is a palindrome |
def reverse_3703(f):
return f[::-1] | Reverses the string f |
def sum_list_3704(p):
total = 0
for x in p:
total += x
return total | Returns the sum of elements in the list p |
def add_3705(h, c):
return h + c | Returns the sum of h and c |
def is_palindrome_3706(l):
t = l.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string l is a palindrome |
def sum_list_3707(z):
total = 0
for x in z:
total += x
return total | Returns the sum of elements in the list z |
def is_palindrome_3708(k):
t = k.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string k is a palindrome |
def contains_digit_3709(f):
for ch in f:
if ch.isdigit():
return True
return False | Checks if the string f contains any digit |
def add_3710(h, b):
return h + b | Returns the sum of h and b |
def add_3711(u, r):
return u + r | Returns the sum of u and r |
def add_3712(a, s):
return a + s | Returns the sum of a and s |
def is_palindrome_3713(u):
t = u.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string u is a palindrome |
def is_palindrome_3714(f):
t = f.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string f is a palindrome |
def sum_list_3715(v):
total = 0
for x in v:
total += x
return total | Returns the sum of elements in the list v |
def sum_list_3716(g):
total = 0
for x in g:
total += x
return total | Returns the sum of elements in the list g |
def add_3717(o, l):
return o + l | Returns the sum of o and l |
def sum_list_3718(h):
total = 0
for x in h:
total += x
return total | Returns the sum of elements in the list h |
def reverse_3719(z):
return z[::-1] | Reverses the string z |
def is_palindrome_3720(p):
t = p.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string p is a palindrome |
def is_palindrome_3721(y):
t = y.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string y is a palindrome |
def sum_list_3722(k):
total = 0
for x in k:
total += x
return total | Returns the sum of elements in the list k |
def sum_list_3723(j):
total = 0
for x in j:
total += x
return total | Returns the sum of elements in the list j |
def reverse_3724(f):
return f[::-1] | Reverses the string f |
def reverse_3725(c):
return c[::-1] | Reverses the string c |
def add_3726(p, t):
return p + t | Returns the sum of p and t |
def sum_list_3727(o):
total = 0
for x in o:
total += x
return total | Returns the sum of elements in the list o |
def reverse_3728(s):
return s[::-1] | Reverses the string s |
def add_3729(d, g):
return d + g | Returns the sum of d and g |
def is_palindrome_3730(m):
t = m.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string m is a palindrome |
def contains_digit_3731(x):
for ch in x:
if ch.isdigit():
return True
return False | Checks if the string x contains any digit |
def sum_list_3732(j):
total = 0
for x in j:
total += x
return total | Returns the sum of elements in the list j |
def is_palindrome_3733(a):
t = a.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string a is a palindrome |
def contains_digit_3734(l):
for ch in l:
if ch.isdigit():
return True
return False | Checks if the string l contains any digit |
def is_palindrome_3735(x):
t = x.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string x is a palindrome |
def is_palindrome_3736(x):
t = x.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string x is a palindrome |
def is_palindrome_3737(t):
t = t.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string t is a palindrome |
def is_palindrome_3738(m):
t = m.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string m is a palindrome |
def contains_digit_3739(f):
for ch in f:
if ch.isdigit():
return True
return False | Checks if the string f contains any digit |
def add_3740(t, a):
return t + a | Returns the sum of t and a |
def is_palindrome_3741(i):
t = i.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string i is a palindrome |
def sum_list_3742(f):
total = 0
for x in f:
total += x
return total | Returns the sum of elements in the list f |
def add_3743(m, n):
return m + n | Returns the sum of m and n |
def contains_digit_3744(f):
for ch in f:
if ch.isdigit():
return True
return False | Checks if the string f contains any digit |
def reverse_3745(r):
return r[::-1] | Reverses the string r |
def add_3746(g, h):
return g + h | Returns the sum of g and h |
def sum_list_3747(l):
total = 0
for x in l:
total += x
return total | Returns the sum of elements in the list l |
def add_3748(z, e):
return z + e | Returns the sum of z and e |
def sum_list_3749(d):
total = 0
for x in d:
total += x
return total | Returns the sum of elements in the list d |
def contains_digit_3750(o):
for ch in o:
if ch.isdigit():
return True
return False | Checks if the string o contains any digit |
def sum_list_3751(g):
total = 0
for x in g:
total += x
return total | Returns the sum of elements in the list g |
def is_palindrome_3752(e):
t = e.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string e is a palindrome |
def sum_list_3753(y):
total = 0
for x in y:
total += x
return total | Returns the sum of elements in the list y |
def is_palindrome_3754(j):
t = j.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string j is a palindrome |
def add_3755(m, x):
return m + x | Returns the sum of m and x |
def is_palindrome_3756(s):
t = s.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string s is a palindrome |
def is_palindrome_3757(j):
t = j.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string j is a palindrome |
def contains_digit_3758(p):
for ch in p:
if ch.isdigit():
return True
return False | Checks if the string p contains any digit |
def contains_digit_3759(b):
for ch in b:
if ch.isdigit():
return True
return False | Checks if the string b contains any digit |
def contains_digit_3760(x):
for ch in x:
if ch.isdigit():
return True
return False | Checks if the string x contains any digit |
def reverse_3761(k):
return k[::-1] | Reverses the string k |
def sum_list_3762(s):
total = 0
for x in s:
total += x
return total | Returns the sum of elements in the list s |
def sum_list_3763(l):
total = 0
for x in l:
total += x
return total | Returns the sum of elements in the list l |
def sum_list_3764(w):
total = 0
for x in w:
total += x
return total | Returns the sum of elements in the list w |
def contains_digit_3765(c):
for ch in c:
if ch.isdigit():
return True
return False | Checks if the string c contains any digit |
def reverse_3766(w):
return w[::-1] | Reverses the string w |
def contains_digit_3767(r):
for ch in r:
if ch.isdigit():
return True
return False | Checks if the string r contains any digit |
def reverse_3768(e):
return e[::-1] | Reverses the string e |
def is_palindrome_3769(i):
t = i.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string i is a palindrome |
def is_palindrome_3770(y):
t = y.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string y is a palindrome |
def contains_digit_3771(z):
for ch in z:
if ch.isdigit():
return True
return False | Checks if the string z contains any digit |
def is_palindrome_3772(h):
t = h.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string h is a palindrome |
def sum_list_3773(z):
total = 0
for x in z:
total += x
return total | Returns the sum of elements in the list z |
def contains_digit_3774(s):
for ch in s:
if ch.isdigit():
return True
return False | Checks if the string s contains any digit |
def contains_digit_3775(x):
for ch in x:
if ch.isdigit():
return True
return False | Checks if the string x contains any digit |
def sum_list_3776(j):
total = 0
for x in j:
total += x
return total | Returns the sum of elements in the list j |
def is_palindrome_3777(j):
t = j.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string j is a palindrome |
def is_palindrome_3778(g):
t = g.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string g is a palindrome |
def reverse_3779(v):
return v[::-1] | Reverses the string v |
def reverse_3780(j):
return j[::-1] | Reverses the string j |
def add_3781(a, y):
return a + y | Returns the sum of a and y |
def sum_list_3782(r):
total = 0
for x in r:
total += x
return total | Returns the sum of elements in the list r |
def sum_list_3783(q):
total = 0
for x in q:
total += x
return total | Returns the sum of elements in the list q |
def contains_digit_3784(h):
for ch in h:
if ch.isdigit():
return True
return False | Checks if the string h contains any digit |
def reverse_3785(o):
return o[::-1] | Reverses the string o |
def reverse_3786(r):
return r[::-1] | Reverses the string r |
def contains_digit_3787(p):
for ch in p:
if ch.isdigit():
return True
return False | Checks if the string p contains any digit |
def reverse_3788(v):
return v[::-1] | Reverses the string v |
def add_3789(o, l):
return o + l | Returns the sum of o and l |
def add_3790(o, g):
return o + g | Returns the sum of o and g |
def sum_list_3791(d):
total = 0
for x in d:
total += x
return total | Returns the sum of elements in the list d |
def is_palindrome_3792(v):
t = v.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string v is a palindrome |
def add_3793(n, m):
return n + m | Returns the sum of n and m |
def reverse_3794(n):
return n[::-1] | Reverses the string n |
def contains_digit_3795(a):
for ch in a:
if ch.isdigit():
return True
return False | Checks if the string a contains any digit |
def add_3796(g, f):
return g + f | Returns the sum of g and f |
def reverse_3797(p):
return p[::-1] | Reverses the string p |
def sum_list_3798(e):
total = 0
for x in e:
total += x
return total | Returns the sum of elements in the list e |
def contains_digit_3799(z):
for ch in z:
if ch.isdigit():
return True
return False | Checks if the string z contains any digit |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.