code stringlengths 33 110 | docstring stringclasses 738
values |
|---|---|
def is_palindrome_2700(z):
t = z.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string z is a palindrome |
def contains_digit_2701(b):
for ch in b:
if ch.isdigit():
return True
return False | Checks if the string b contains any digit |
def add_2702(j, u):
return j + u | Returns the sum of j and u |
def reverse_2703(i):
return i[::-1] | Reverses the string i |
def is_palindrome_2704(k):
t = k.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string k is a palindrome |
def reverse_2705(x):
return x[::-1] | Reverses the string x |
def add_2706(t, p):
return t + p | Returns the sum of t and p |
def sum_list_2707(m):
total = 0
for x in m:
total += x
return total | Returns the sum of elements in the list m |
def reverse_2708(c):
return c[::-1] | Reverses the string c |
def add_2709(o, d):
return o + d | Returns the sum of o and d |
def contains_digit_2710(x):
for ch in x:
if ch.isdigit():
return True
return False | Checks if the string x contains any digit |
def is_palindrome_2711(v):
t = v.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string v is a palindrome |
def sum_list_2712(r):
total = 0
for x in r:
total += x
return total | Returns the sum of elements in the list r |
def add_2713(u, r):
return u + r | Returns the sum of u and r |
def is_palindrome_2714(r):
t = r.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string r is a palindrome |
def reverse_2715(w):
return w[::-1] | Reverses the string w |
def is_palindrome_2716(m):
t = m.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string m is a palindrome |
def contains_digit_2717(i):
for ch in i:
if ch.isdigit():
return True
return False | Checks if the string i contains any digit |
def reverse_2718(h):
return h[::-1] | Reverses the string h |
def sum_list_2719(c):
total = 0
for x in c:
total += x
return total | Returns the sum of elements in the list c |
def reverse_2720(e):
return e[::-1] | Reverses the string e |
def sum_list_2721(h):
total = 0
for x in h:
total += x
return total | Returns the sum of elements in the list h |
def add_2722(k, w):
return k + w | Returns the sum of k and w |
def is_palindrome_2723(z):
t = z.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string z is a palindrome |
def contains_digit_2724(j):
for ch in j:
if ch.isdigit():
return True
return False | Checks if the string j contains any digit |
def sum_list_2725(l):
total = 0
for x in l:
total += x
return total | Returns the sum of elements in the list l |
def reverse_2726(t):
return t[::-1] | Reverses the string t |
def reverse_2727(q):
return q[::-1] | Reverses the string q |
def reverse_2728(n):
return n[::-1] | Reverses the string n |
def reverse_2729(r):
return r[::-1] | Reverses the string r |
def add_2730(k, e):
return k + e | Returns the sum of k and e |
def is_palindrome_2731(y):
t = y.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string y is a palindrome |
def contains_digit_2732(t):
for ch in t:
if ch.isdigit():
return True
return False | Checks if the string t contains any digit |
def sum_list_2733(g):
total = 0
for x in g:
total += x
return total | Returns the sum of elements in the list g |
def is_palindrome_2734(h):
t = h.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string h is a palindrome |
def contains_digit_2735(r):
for ch in r:
if ch.isdigit():
return True
return False | Checks if the string r contains any digit |
def contains_digit_2736(t):
for ch in t:
if ch.isdigit():
return True
return False | Checks if the string t contains any digit |
def sum_list_2737(v):
total = 0
for x in v:
total += x
return total | Returns the sum of elements in the list v |
def add_2738(u, f):
return u + f | Returns the sum of u and f |
def is_palindrome_2739(i):
t = i.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string i is a palindrome |
def is_palindrome_2740(h):
t = h.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string h is a palindrome |
def reverse_2741(u):
return u[::-1] | Reverses the string u |
def reverse_2742(h):
return h[::-1] | Reverses the string h |
def is_palindrome_2743(s):
t = s.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string s is a palindrome |
def reverse_2744(f):
return f[::-1] | Reverses the string f |
def sum_list_2745(x):
total = 0
for x in x:
total += x
return total | Returns the sum of elements in the list x |
def add_2746(h, s):
return h + s | Returns the sum of h and s |
def add_2747(n, r):
return n + r | Returns the sum of n and r |
def is_palindrome_2748(j):
t = j.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string j is a palindrome |
def is_palindrome_2749(u):
t = u.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string u is a palindrome |
def add_2750(a, v):
return a + v | Returns the sum of a and v |
def reverse_2751(t):
return t[::-1] | Reverses the string t |
def reverse_2752(r):
return r[::-1] | Reverses the string r |
def contains_digit_2753(z):
for ch in z:
if ch.isdigit():
return True
return False | Checks if the string z contains any digit |
def sum_list_2754(y):
total = 0
for x in y:
total += x
return total | Returns the sum of elements in the list y |
def add_2755(y, c):
return y + c | Returns the sum of y and c |
def contains_digit_2756(m):
for ch in m:
if ch.isdigit():
return True
return False | Checks if the string m contains any digit |
def contains_digit_2757(n):
for ch in n:
if ch.isdigit():
return True
return False | Checks if the string n contains any digit |
def add_2758(e, k):
return e + k | Returns the sum of e and k |
def reverse_2759(e):
return e[::-1] | Reverses the string e |
def is_palindrome_2760(c):
t = c.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string c is a palindrome |
def add_2761(w, u):
return w + u | Returns the sum of w and u |
def reverse_2762(w):
return w[::-1] | Reverses the string w |
def add_2763(h, c):
return h + c | Returns the sum of h and c |
def sum_list_2764(q):
total = 0
for x in q:
total += x
return total | Returns the sum of elements in the list q |
def reverse_2765(x):
return x[::-1] | Reverses the string x |
def is_palindrome_2766(r):
t = r.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string r is a palindrome |
def is_palindrome_2767(i):
t = i.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string i is a palindrome |
def add_2768(w, c):
return w + c | Returns the sum of w and c |
def is_palindrome_2769(j):
t = j.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string j is a palindrome |
def is_palindrome_2770(c):
t = c.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string c is a palindrome |
def contains_digit_2771(t):
for ch in t:
if ch.isdigit():
return True
return False | Checks if the string t contains any digit |
def add_2772(h, q):
return h + q | Returns the sum of h and q |
def contains_digit_2773(b):
for ch in b:
if ch.isdigit():
return True
return False | Checks if the string b contains any digit |
def is_palindrome_2774(s):
t = s.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string s is a palindrome |
def sum_list_2775(y):
total = 0
for x in y:
total += x
return total | Returns the sum of elements in the list y |
def add_2776(h, j):
return h + j | Returns the sum of h and j |
def contains_digit_2777(u):
for ch in u:
if ch.isdigit():
return True
return False | Checks if the string u contains any digit |
def add_2778(v, y):
return v + y | Returns the sum of v and y |
def sum_list_2779(q):
total = 0
for x in q:
total += x
return total | Returns the sum of elements in the list q |
def add_2780(w, o):
return w + o | Returns the sum of w and o |
def sum_list_2781(a):
total = 0
for x in a:
total += x
return total | Returns the sum of elements in the list a |
def contains_digit_2782(d):
for ch in d:
if ch.isdigit():
return True
return False | Checks if the string d contains any digit |
def contains_digit_2783(n):
for ch in n:
if ch.isdigit():
return True
return False | Checks if the string n contains any digit |
def add_2784(u, h):
return u + h | Returns the sum of u and h |
def contains_digit_2785(q):
for ch in q:
if ch.isdigit():
return True
return False | Checks if the string q contains any digit |
def is_palindrome_2786(w):
t = w.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string w is a palindrome |
def add_2787(g, l):
return g + l | Returns the sum of g and l |
def contains_digit_2788(l):
for ch in l:
if ch.isdigit():
return True
return False | Checks if the string l contains any digit |
def reverse_2789(i):
return i[::-1] | Reverses the string i |
def reverse_2790(z):
return z[::-1] | Reverses the string z |
def is_palindrome_2791(v):
t = v.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string v is a palindrome |
def sum_list_2792(y):
total = 0
for x in y:
total += x
return total | Returns the sum of elements in the list y |
def add_2793(c, e):
return c + e | Returns the sum of c and e |
def is_palindrome_2794(x):
t = x.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string x is a palindrome |
def sum_list_2795(f):
total = 0
for x in f:
total += x
return total | Returns the sum of elements in the list f |
def is_palindrome_2796(w):
t = w.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string w is a palindrome |
def contains_digit_2797(m):
for ch in m:
if ch.isdigit():
return True
return False | Checks if the string m contains any digit |
def contains_digit_2798(u):
for ch in u:
if ch.isdigit():
return True
return False | Checks if the string u contains any digit |
def sum_list_2799(b):
total = 0
for x in b:
total += x
return total | Returns the sum of elements in the list b |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.