code stringlengths 33 110 | docstring stringclasses 738
values |
|---|---|
def reverse_3000(j):
return j[::-1] | Reverses the string j |
def contains_digit_3001(i):
for ch in i:
if ch.isdigit():
return True
return False | Checks if the string i contains any digit |
def is_palindrome_3002(u):
t = u.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string u is a palindrome |
def add_3003(e, e):
return e + e | Returns the sum of e and e |
def add_3004(x, g):
return x + g | Returns the sum of x and g |
def add_3005(t, d):
return t + d | Returns the sum of t and d |
def contains_digit_3006(y):
for ch in y:
if ch.isdigit():
return True
return False | Checks if the string y contains any digit |
def reverse_3007(i):
return i[::-1] | Reverses the string i |
def contains_digit_3008(y):
for ch in y:
if ch.isdigit():
return True
return False | Checks if the string y contains any digit |
def reverse_3009(y):
return y[::-1] | Reverses the string y |
def sum_list_3010(p):
total = 0
for x in p:
total += x
return total | Returns the sum of elements in the list p |
def contains_digit_3011(b):
for ch in b:
if ch.isdigit():
return True
return False | Checks if the string b contains any digit |
def reverse_3012(z):
return z[::-1] | Reverses the string z |
def reverse_3013(l):
return l[::-1] | Reverses the string l |
def reverse_3014(b):
return b[::-1] | Reverses the string b |
def reverse_3015(w):
return w[::-1] | Reverses the string w |
def contains_digit_3016(w):
for ch in w:
if ch.isdigit():
return True
return False | Checks if the string w contains any digit |
def is_palindrome_3017(t):
t = t.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string t is a palindrome |
def sum_list_3018(j):
total = 0
for x in j:
total += x
return total | Returns the sum of elements in the list j |
def add_3019(u, z):
return u + z | Returns the sum of u and z |
def sum_list_3020(t):
total = 0
for x in t:
total += x
return total | Returns the sum of elements in the list t |
def contains_digit_3021(q):
for ch in q:
if ch.isdigit():
return True
return False | Checks if the string q contains any digit |
def contains_digit_3022(f):
for ch in f:
if ch.isdigit():
return True
return False | Checks if the string f contains any digit |
def reverse_3023(q):
return q[::-1] | Reverses the string q |
def add_3024(l, f):
return l + f | Returns the sum of l and f |
def is_palindrome_3025(c):
t = c.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string c is a palindrome |
def add_3026(d, p):
return d + p | Returns the sum of d and p |
def contains_digit_3027(n):
for ch in n:
if ch.isdigit():
return True
return False | Checks if the string n contains any digit |
def contains_digit_3028(h):
for ch in h:
if ch.isdigit():
return True
return False | Checks if the string h contains any digit |
def is_palindrome_3029(t):
t = t.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string t is a palindrome |
def reverse_3030(z):
return z[::-1] | Reverses the string z |
def add_3031(t, k):
return t + k | Returns the sum of t and k |
def reverse_3032(d):
return d[::-1] | Reverses the string d |
def is_palindrome_3033(w):
t = w.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string w is a palindrome |
def add_3034(t, k):
return t + k | Returns the sum of t and k |
def contains_digit_3035(m):
for ch in m:
if ch.isdigit():
return True
return False | Checks if the string m contains any digit |
def sum_list_3036(i):
total = 0
for x in i:
total += x
return total | Returns the sum of elements in the list i |
def reverse_3037(y):
return y[::-1] | Reverses the string y |
def sum_list_3038(g):
total = 0
for x in g:
total += x
return total | Returns the sum of elements in the list g |
def contains_digit_3039(x):
for ch in x:
if ch.isdigit():
return True
return False | Checks if the string x contains any digit |
def reverse_3040(j):
return j[::-1] | Reverses the string j |
def reverse_3041(y):
return y[::-1] | Reverses the string y |
def sum_list_3042(b):
total = 0
for x in b:
total += x
return total | Returns the sum of elements in the list b |
def reverse_3043(n):
return n[::-1] | Reverses the string n |
def sum_list_3044(v):
total = 0
for x in v:
total += x
return total | Returns the sum of elements in the list v |
def sum_list_3045(v):
total = 0
for x in v:
total += x
return total | Returns the sum of elements in the list v |
def is_palindrome_3046(q):
t = q.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string q is a palindrome |
def is_palindrome_3047(u):
t = u.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string u is a palindrome |
def add_3048(w, s):
return w + s | Returns the sum of w and s |
def contains_digit_3049(a):
for ch in a:
if ch.isdigit():
return True
return False | Checks if the string a contains any digit |
def reverse_3050(c):
return c[::-1] | Reverses the string c |
def sum_list_3051(v):
total = 0
for x in v:
total += x
return total | Returns the sum of elements in the list v |
def add_3052(t, k):
return t + k | Returns the sum of t and k |
def sum_list_3053(g):
total = 0
for x in g:
total += x
return total | Returns the sum of elements in the list g |
def contains_digit_3054(w):
for ch in w:
if ch.isdigit():
return True
return False | Checks if the string w contains any digit |
def reverse_3055(v):
return v[::-1] | Reverses the string v |
def contains_digit_3056(a):
for ch in a:
if ch.isdigit():
return True
return False | Checks if the string a contains any digit |
def add_3057(t, o):
return t + o | Returns the sum of t and o |
def add_3058(q, x):
return q + x | Returns the sum of q and x |
def reverse_3059(b):
return b[::-1] | Reverses the string b |
def add_3060(w, v):
return w + v | Returns the sum of w and v |
def add_3061(v, z):
return v + z | Returns the sum of v and z |
def sum_list_3062(o):
total = 0
for x in o:
total += x
return total | Returns the sum of elements in the list o |
def contains_digit_3063(b):
for ch in b:
if ch.isdigit():
return True
return False | Checks if the string b contains any digit |
def reverse_3064(j):
return j[::-1] | Reverses the string j |
def reverse_3065(d):
return d[::-1] | Reverses the string d |
def is_palindrome_3066(i):
t = i.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string i is a palindrome |
def sum_list_3067(m):
total = 0
for x in m:
total += x
return total | Returns the sum of elements in the list m |
def sum_list_3068(k):
total = 0
for x in k:
total += x
return total | Returns the sum of elements in the list k |
def is_palindrome_3069(a):
t = a.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string a is a palindrome |
def is_palindrome_3070(r):
t = r.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string r is a palindrome |
def add_3071(w, u):
return w + u | Returns the sum of w and u |
def is_palindrome_3072(n):
t = n.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string n is a palindrome |
def sum_list_3073(c):
total = 0
for x in c:
total += x
return total | Returns the sum of elements in the list c |
def add_3074(w, g):
return w + g | Returns the sum of w and g |
def sum_list_3075(z):
total = 0
for x in z:
total += x
return total | Returns the sum of elements in the list z |
def contains_digit_3076(x):
for ch in x:
if ch.isdigit():
return True
return False | Checks if the string x contains any digit |
def sum_list_3077(h):
total = 0
for x in h:
total += x
return total | Returns the sum of elements in the list h |
def reverse_3078(f):
return f[::-1] | Reverses the string f |
def contains_digit_3079(q):
for ch in q:
if ch.isdigit():
return True
return False | Checks if the string q contains any digit |
def add_3080(m, g):
return m + g | Returns the sum of m and g |
def contains_digit_3081(u):
for ch in u:
if ch.isdigit():
return True
return False | Checks if the string u contains any digit |
def add_3082(b, t):
return b + t | Returns the sum of b and t |
def sum_list_3083(s):
total = 0
for x in s:
total += x
return total | Returns the sum of elements in the list s |
def is_palindrome_3084(o):
t = o.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string o is a palindrome |
def sum_list_3085(w):
total = 0
for x in w:
total += x
return total | Returns the sum of elements in the list w |
def add_3086(b, z):
return b + z | Returns the sum of b and z |
def contains_digit_3087(j):
for ch in j:
if ch.isdigit():
return True
return False | Checks if the string j contains any digit |
def reverse_3088(v):
return v[::-1] | Reverses the string v |
def is_palindrome_3089(n):
t = n.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string n is a palindrome |
def sum_list_3090(b):
total = 0
for x in b:
total += x
return total | Returns the sum of elements in the list b |
def add_3091(k, n):
return k + n | Returns the sum of k and n |
def reverse_3092(i):
return i[::-1] | Reverses the string i |
def sum_list_3093(r):
total = 0
for x in r:
total += x
return total | Returns the sum of elements in the list r |
def reverse_3094(h):
return h[::-1] | Reverses the string h |
def reverse_3095(y):
return y[::-1] | Reverses the string y |
def add_3096(d, x):
return d + x | Returns the sum of d and x |
def add_3097(r, m):
return r + m | Returns the sum of r and m |
def contains_digit_3098(p):
for ch in p:
if ch.isdigit():
return True
return False | Checks if the string p contains any digit |
def reverse_3099(n):
return n[::-1] | Reverses the string n |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.