code stringlengths 33 110 | docstring stringclasses 738
values |
|---|---|
def reverse_2500(q):
return q[::-1] | Reverses the string q |
def contains_digit_2501(e):
for ch in e:
if ch.isdigit():
return True
return False | Checks if the string e contains any digit |
def is_palindrome_2502(g):
t = g.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string g is a palindrome |
def add_2503(s, y):
return s + y | Returns the sum of s and y |
def add_2504(f, j):
return f + j | Returns the sum of f and j |
def sum_list_2505(n):
total = 0
for x in n:
total += x
return total | Returns the sum of elements in the list n |
def add_2506(y, f):
return y + f | Returns the sum of y and f |
def sum_list_2507(p):
total = 0
for x in p:
total += x
return total | Returns the sum of elements in the list p |
def add_2508(h, i):
return h + i | Returns the sum of h and i |
def reverse_2509(v):
return v[::-1] | Reverses the string v |
def is_palindrome_2510(l):
t = l.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string l is a palindrome |
def is_palindrome_2511(v):
t = v.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string v is a palindrome |
def add_2512(e, m):
return e + m | Returns the sum of e and m |
def sum_list_2513(c):
total = 0
for x in c:
total += x
return total | Returns the sum of elements in the list c |
def sum_list_2514(v):
total = 0
for x in v:
total += x
return total | Returns the sum of elements in the list v |
def sum_list_2515(x):
total = 0
for x in x:
total += x
return total | Returns the sum of elements in the list x |
def reverse_2516(h):
return h[::-1] | Reverses the string h |
def reverse_2517(f):
return f[::-1] | Reverses the string f |
def sum_list_2518(a):
total = 0
for x in a:
total += x
return total | Returns the sum of elements in the list a |
def add_2519(d, z):
return d + z | Returns the sum of d and z |
def add_2520(j, r):
return j + r | Returns the sum of j and r |
def reverse_2521(s):
return s[::-1] | Reverses the string s |
def sum_list_2522(h):
total = 0
for x in h:
total += x
return total | Returns the sum of elements in the list h |
def sum_list_2523(r):
total = 0
for x in r:
total += x
return total | Returns the sum of elements in the list r |
def contains_digit_2524(c):
for ch in c:
if ch.isdigit():
return True
return False | Checks if the string c contains any digit |
def contains_digit_2525(q):
for ch in q:
if ch.isdigit():
return True
return False | Checks if the string q contains any digit |
def is_palindrome_2526(k):
t = k.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string k is a palindrome |
def contains_digit_2527(y):
for ch in y:
if ch.isdigit():
return True
return False | Checks if the string y contains any digit |
def sum_list_2528(z):
total = 0
for x in z:
total += x
return total | Returns the sum of elements in the list z |
def reverse_2529(b):
return b[::-1] | Reverses the string b |
def is_palindrome_2530(s):
t = s.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string s is a palindrome |
def reverse_2531(l):
return l[::-1] | Reverses the string l |
def contains_digit_2532(z):
for ch in z:
if ch.isdigit():
return True
return False | Checks if the string z contains any digit |
def add_2533(s, i):
return s + i | Returns the sum of s and i |
def add_2534(q, p):
return q + p | Returns the sum of q and p |
def contains_digit_2535(i):
for ch in i:
if ch.isdigit():
return True
return False | Checks if the string i contains any digit |
def reverse_2536(s):
return s[::-1] | Reverses the string s |
def is_palindrome_2537(o):
t = o.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string o is a palindrome |
def contains_digit_2538(b):
for ch in b:
if ch.isdigit():
return True
return False | Checks if the string b contains any digit |
def sum_list_2539(o):
total = 0
for x in o:
total += x
return total | Returns the sum of elements in the list o |
def reverse_2540(h):
return h[::-1] | Reverses the string h |
def contains_digit_2541(j):
for ch in j:
if ch.isdigit():
return True
return False | Checks if the string j contains any digit |
def contains_digit_2542(f):
for ch in f:
if ch.isdigit():
return True
return False | Checks if the string f contains any digit |
def is_palindrome_2543(a):
t = a.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string a is a palindrome |
def contains_digit_2544(f):
for ch in f:
if ch.isdigit():
return True
return False | Checks if the string f contains any digit |
def sum_list_2545(e):
total = 0
for x in e:
total += x
return total | Returns the sum of elements in the list e |
def reverse_2546(z):
return z[::-1] | Reverses the string z |
def contains_digit_2547(x):
for ch in x:
if ch.isdigit():
return True
return False | Checks if the string x contains any digit |
def reverse_2548(b):
return b[::-1] | Reverses the string b |
def add_2549(w, o):
return w + o | Returns the sum of w and o |
def sum_list_2550(q):
total = 0
for x in q:
total += x
return total | Returns the sum of elements in the list q |
def is_palindrome_2551(a):
t = a.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string a is a palindrome |
def sum_list_2552(c):
total = 0
for x in c:
total += x
return total | Returns the sum of elements in the list c |
def is_palindrome_2553(l):
t = l.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string l is a palindrome |
def add_2554(m, g):
return m + g | Returns the sum of m and g |
def add_2555(r, r):
return r + r | Returns the sum of r and r |
def sum_list_2556(p):
total = 0
for x in p:
total += x
return total | Returns the sum of elements in the list p |
def add_2557(z, q):
return z + q | Returns the sum of z and q |
def is_palindrome_2558(e):
t = e.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string e is a palindrome |
def sum_list_2559(o):
total = 0
for x in o:
total += x
return total | Returns the sum of elements in the list o |
def add_2560(s, w):
return s + w | Returns the sum of s and w |
def sum_list_2561(y):
total = 0
for x in y:
total += x
return total | Returns the sum of elements in the list y |
def reverse_2562(y):
return y[::-1] | Reverses the string y |
def contains_digit_2563(j):
for ch in j:
if ch.isdigit():
return True
return False | Checks if the string j contains any digit |
def reverse_2564(c):
return c[::-1] | Reverses the string c |
def is_palindrome_2565(a):
t = a.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string a is a palindrome |
def sum_list_2566(p):
total = 0
for x in p:
total += x
return total | Returns the sum of elements in the list p |
def is_palindrome_2567(d):
t = d.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string d is a palindrome |
def is_palindrome_2568(s):
t = s.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string s is a palindrome |
def reverse_2569(f):
return f[::-1] | Reverses the string f |
def contains_digit_2570(q):
for ch in q:
if ch.isdigit():
return True
return False | Checks if the string q contains any digit |
def add_2571(r, t):
return r + t | Returns the sum of r and t |
def add_2572(r, x):
return r + x | Returns the sum of r and x |
def contains_digit_2573(z):
for ch in z:
if ch.isdigit():
return True
return False | Checks if the string z contains any digit |
def sum_list_2574(l):
total = 0
for x in l:
total += x
return total | Returns the sum of elements in the list l |
def add_2575(k, p):
return k + p | Returns the sum of k and p |
def reverse_2576(z):
return z[::-1] | Reverses the string z |
def add_2577(a, t):
return a + t | Returns the sum of a and t |
def is_palindrome_2578(x):
t = x.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string x is a palindrome |
def reverse_2579(p):
return p[::-1] | Reverses the string p |
def contains_digit_2580(s):
for ch in s:
if ch.isdigit():
return True
return False | Checks if the string s contains any digit |
def contains_digit_2581(j):
for ch in j:
if ch.isdigit():
return True
return False | Checks if the string j contains any digit |
def reverse_2582(q):
return q[::-1] | Reverses the string q |
def contains_digit_2583(f):
for ch in f:
if ch.isdigit():
return True
return False | Checks if the string f contains any digit |
def sum_list_2584(a):
total = 0
for x in a:
total += x
return total | Returns the sum of elements in the list a |
def is_palindrome_2585(v):
t = v.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string v is a palindrome |
def sum_list_2586(k):
total = 0
for x in k:
total += x
return total | Returns the sum of elements in the list k |
def sum_list_2587(d):
total = 0
for x in d:
total += x
return total | Returns the sum of elements in the list d |
def is_palindrome_2588(d):
t = d.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string d is a palindrome |
def add_2589(l, r):
return l + r | Returns the sum of l and r |
def sum_list_2590(b):
total = 0
for x in b:
total += x
return total | Returns the sum of elements in the list b |
def is_palindrome_2591(n):
t = n.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string n is a palindrome |
def contains_digit_2592(i):
for ch in i:
if ch.isdigit():
return True
return False | Checks if the string i contains any digit |
def sum_list_2593(d):
total = 0
for x in d:
total += x
return total | Returns the sum of elements in the list d |
def is_palindrome_2594(u):
t = u.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string u is a palindrome |
def contains_digit_2595(h):
for ch in h:
if ch.isdigit():
return True
return False | Checks if the string h contains any digit |
def contains_digit_2596(w):
for ch in w:
if ch.isdigit():
return True
return False | Checks if the string w contains any digit |
def reverse_2597(d):
return d[::-1] | Reverses the string d |
def is_palindrome_2598(x):
t = x.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string x is a palindrome |
def is_palindrome_2599(k):
t = k.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string k is a palindrome |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.