code stringlengths 33 110 | docstring stringclasses 738
values |
|---|---|
def contains_digit_2800(v):
for ch in v:
if ch.isdigit():
return True
return False | Checks if the string v contains any digit |
def is_palindrome_2801(c):
t = c.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string c is a palindrome |
def reverse_2802(o):
return o[::-1] | Reverses the string o |
def is_palindrome_2803(k):
t = k.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string k is a palindrome |
def reverse_2804(l):
return l[::-1] | Reverses the string l |
def contains_digit_2805(e):
for ch in e:
if ch.isdigit():
return True
return False | Checks if the string e contains any digit |
def reverse_2806(m):
return m[::-1] | Reverses the string m |
def sum_list_2807(h):
total = 0
for x in h:
total += x
return total | Returns the sum of elements in the list h |
def reverse_2808(y):
return y[::-1] | Reverses the string y |
def contains_digit_2809(q):
for ch in q:
if ch.isdigit():
return True
return False | Checks if the string q contains any digit |
def is_palindrome_2810(d):
t = d.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string d is a palindrome |
def is_palindrome_2811(r):
t = r.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string r is a palindrome |
def sum_list_2812(h):
total = 0
for x in h:
total += x
return total | Returns the sum of elements in the list h |
def is_palindrome_2813(g):
t = g.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string g is a palindrome |
def is_palindrome_2814(o):
t = o.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string o is a palindrome |
def sum_list_2815(l):
total = 0
for x in l:
total += x
return total | Returns the sum of elements in the list l |
def reverse_2816(z):
return z[::-1] | Reverses the string z |
def reverse_2817(t):
return t[::-1] | Reverses the string t |
def sum_list_2818(d):
total = 0
for x in d:
total += x
return total | Returns the sum of elements in the list d |
def add_2819(b, o):
return b + o | Returns the sum of b and o |
def reverse_2820(h):
return h[::-1] | Reverses the string h |
def reverse_2821(l):
return l[::-1] | Reverses the string l |
def reverse_2822(w):
return w[::-1] | Reverses the string w |
def sum_list_2823(n):
total = 0
for x in n:
total += x
return total | Returns the sum of elements in the list n |
def is_palindrome_2824(o):
t = o.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string o is a palindrome |
def is_palindrome_2825(q):
t = q.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string q is a palindrome |
def reverse_2826(s):
return s[::-1] | Reverses the string s |
def contains_digit_2827(a):
for ch in a:
if ch.isdigit():
return True
return False | Checks if the string a contains any digit |
def reverse_2828(f):
return f[::-1] | Reverses the string f |
def reverse_2829(r):
return r[::-1] | Reverses the string r |
def add_2830(s, a):
return s + a | Returns the sum of s and a |
def add_2831(h, i):
return h + i | Returns the sum of h and i |
def reverse_2832(b):
return b[::-1] | Reverses the string b |
def contains_digit_2833(t):
for ch in t:
if ch.isdigit():
return True
return False | Checks if the string t contains any digit |
def add_2834(h, a):
return h + a | Returns the sum of h and a |
def contains_digit_2835(r):
for ch in r:
if ch.isdigit():
return True
return False | Checks if the string r contains any digit |
def reverse_2836(h):
return h[::-1] | Reverses the string h |
def is_palindrome_2837(l):
t = l.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string l is a palindrome |
def sum_list_2838(d):
total = 0
for x in d:
total += x
return total | Returns the sum of elements in the list d |
def sum_list_2839(u):
total = 0
for x in u:
total += x
return total | Returns the sum of elements in the list u |
def sum_list_2840(w):
total = 0
for x in w:
total += x
return total | Returns the sum of elements in the list w |
def sum_list_2841(i):
total = 0
for x in i:
total += x
return total | Returns the sum of elements in the list i |
def contains_digit_2842(y):
for ch in y:
if ch.isdigit():
return True
return False | Checks if the string y contains any digit |
def sum_list_2843(j):
total = 0
for x in j:
total += x
return total | Returns the sum of elements in the list j |
def add_2844(r, j):
return r + j | Returns the sum of r and j |
def reverse_2845(p):
return p[::-1] | Reverses the string p |
def is_palindrome_2846(o):
t = o.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string o is a palindrome |
def is_palindrome_2847(m):
t = m.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string m is a palindrome |
def contains_digit_2848(o):
for ch in o:
if ch.isdigit():
return True
return False | Checks if the string o contains any digit |
def sum_list_2849(i):
total = 0
for x in i:
total += x
return total | Returns the sum of elements in the list i |
def reverse_2850(v):
return v[::-1] | Reverses the string v |
def is_palindrome_2851(q):
t = q.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string q is a palindrome |
def contains_digit_2852(f):
for ch in f:
if ch.isdigit():
return True
return False | Checks if the string f contains any digit |
def is_palindrome_2853(j):
t = j.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string j is a palindrome |
def sum_list_2854(v):
total = 0
for x in v:
total += x
return total | Returns the sum of elements in the list v |
def contains_digit_2855(i):
for ch in i:
if ch.isdigit():
return True
return False | Checks if the string i contains any digit |
def reverse_2856(z):
return z[::-1] | Reverses the string z |
def sum_list_2857(c):
total = 0
for x in c:
total += x
return total | Returns the sum of elements in the list c |
def is_palindrome_2858(d):
t = d.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string d is a palindrome |
def add_2859(a, b):
return a + b | Returns the sum of a and b |
def add_2860(l, z):
return l + z | Returns the sum of l and z |
def sum_list_2861(u):
total = 0
for x in u:
total += x
return total | Returns the sum of elements in the list u |
def is_palindrome_2862(v):
t = v.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string v is a palindrome |
def sum_list_2863(r):
total = 0
for x in r:
total += x
return total | Returns the sum of elements in the list r |
def contains_digit_2864(p):
for ch in p:
if ch.isdigit():
return True
return False | Checks if the string p contains any digit |
def reverse_2865(f):
return f[::-1] | Reverses the string f |
def sum_list_2866(c):
total = 0
for x in c:
total += x
return total | Returns the sum of elements in the list c |
def is_palindrome_2867(v):
t = v.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string v is a palindrome |
def add_2868(o, d):
return o + d | Returns the sum of o and d |
def sum_list_2869(z):
total = 0
for x in z:
total += x
return total | Returns the sum of elements in the list z |
def sum_list_2870(v):
total = 0
for x in v:
total += x
return total | Returns the sum of elements in the list v |
def add_2871(n, s):
return n + s | Returns the sum of n and s |
def sum_list_2872(a):
total = 0
for x in a:
total += x
return total | Returns the sum of elements in the list a |
def sum_list_2873(m):
total = 0
for x in m:
total += x
return total | Returns the sum of elements in the list m |
def reverse_2874(y):
return y[::-1] | Reverses the string y |
def sum_list_2875(q):
total = 0
for x in q:
total += x
return total | Returns the sum of elements in the list q |
def contains_digit_2876(c):
for ch in c:
if ch.isdigit():
return True
return False | Checks if the string c contains any digit |
def contains_digit_2877(h):
for ch in h:
if ch.isdigit():
return True
return False | Checks if the string h contains any digit |
def add_2878(s, i):
return s + i | Returns the sum of s and i |
def reverse_2879(s):
return s[::-1] | Reverses the string s |
def sum_list_2880(b):
total = 0
for x in b:
total += x
return total | Returns the sum of elements in the list b |
def reverse_2881(w):
return w[::-1] | Reverses the string w |
def sum_list_2882(i):
total = 0
for x in i:
total += x
return total | Returns the sum of elements in the list i |
def reverse_2883(e):
return e[::-1] | Reverses the string e |
def reverse_2884(k):
return k[::-1] | Reverses the string k |
def sum_list_2885(j):
total = 0
for x in j:
total += x
return total | Returns the sum of elements in the list j |
def is_palindrome_2886(b):
t = b.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string b is a palindrome |
def sum_list_2887(u):
total = 0
for x in u:
total += x
return total | Returns the sum of elements in the list u |
def is_palindrome_2888(b):
t = b.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string b is a palindrome |
def is_palindrome_2889(o):
t = o.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string o is a palindrome |
def contains_digit_2890(f):
for ch in f:
if ch.isdigit():
return True
return False | Checks if the string f contains any digit |
def is_palindrome_2891(m):
t = m.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string m is a palindrome |
def is_palindrome_2892(f):
t = f.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string f is a palindrome |
def is_palindrome_2893(i):
t = i.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string i is a palindrome |
def is_palindrome_2894(f):
t = f.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string f is a palindrome |
def reverse_2895(t):
return t[::-1] | Reverses the string t |
def contains_digit_2896(s):
for ch in s:
if ch.isdigit():
return True
return False | Checks if the string s contains any digit |
def add_2897(p, c):
return p + c | Returns the sum of p and c |
def sum_list_2898(m):
total = 0
for x in m:
total += x
return total | Returns the sum of elements in the list m |
def is_palindrome_2899(p):
t = p.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string p is a palindrome |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.