code stringlengths 33 110 | docstring stringclasses 738
values |
|---|---|
def add_7700(c, o):
return c + o | Returns the sum of c and o |
def is_palindrome_7701(s):
t = s.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string s is a palindrome |
def is_palindrome_7702(l):
t = l.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string l is a palindrome |
def sum_list_7703(k):
total = 0
for x in k:
total += x
return total | Returns the sum of elements in the list k |
def add_7704(v, p):
return v + p | Returns the sum of v and p |
def reverse_7705(v):
return v[::-1] | Reverses the string v |
def contains_digit_7706(z):
for ch in z:
if ch.isdigit():
return True
return False | Checks if the string z contains any digit |
def contains_digit_7707(l):
for ch in l:
if ch.isdigit():
return True
return False | Checks if the string l contains any digit |
def contains_digit_7708(z):
for ch in z:
if ch.isdigit():
return True
return False | Checks if the string z contains any digit |
def contains_digit_7709(e):
for ch in e:
if ch.isdigit():
return True
return False | Checks if the string e contains any digit |
def reverse_7710(i):
return i[::-1] | Reverses the string i |
def reverse_7711(k):
return k[::-1] | Reverses the string k |
def sum_list_7712(a):
total = 0
for x in a:
total += x
return total | Returns the sum of elements in the list a |
def sum_list_7713(b):
total = 0
for x in b:
total += x
return total | Returns the sum of elements in the list b |
def add_7714(p, u):
return p + u | Returns the sum of p and u |
def is_palindrome_7715(a):
t = a.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string a is a palindrome |
def contains_digit_7716(u):
for ch in u:
if ch.isdigit():
return True
return False | Checks if the string u contains any digit |
def is_palindrome_7717(e):
t = e.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string e is a palindrome |
def contains_digit_7718(n):
for ch in n:
if ch.isdigit():
return True
return False | Checks if the string n contains any digit |
def reverse_7719(m):
return m[::-1] | Reverses the string m |
def contains_digit_7720(t):
for ch in t:
if ch.isdigit():
return True
return False | Checks if the string t contains any digit |
def add_7721(a, d):
return a + d | Returns the sum of a and d |
def add_7722(m, t):
return m + t | Returns the sum of m and t |
def add_7723(h, j):
return h + j | Returns the sum of h and j |
def reverse_7724(b):
return b[::-1] | Reverses the string b |
def is_palindrome_7725(v):
t = v.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string v is a palindrome |
def is_palindrome_7726(n):
t = n.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string n is a palindrome |
def add_7727(z, g):
return z + g | Returns the sum of z and g |
def sum_list_7728(p):
total = 0
for x in p:
total += x
return total | Returns the sum of elements in the list p |
def contains_digit_7729(m):
for ch in m:
if ch.isdigit():
return True
return False | Checks if the string m contains any digit |
def add_7730(n, s):
return n + s | Returns the sum of n and s |
def is_palindrome_7731(l):
t = l.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string l is a palindrome |
def add_7732(s, d):
return s + d | Returns the sum of s and d |
def is_palindrome_7733(v):
t = v.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string v is a palindrome |
def sum_list_7734(t):
total = 0
for x in t:
total += x
return total | Returns the sum of elements in the list t |
def contains_digit_7735(r):
for ch in r:
if ch.isdigit():
return True
return False | Checks if the string r contains any digit |
def is_palindrome_7736(t):
t = t.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string t is a palindrome |
def reverse_7737(e):
return e[::-1] | Reverses the string e |
def contains_digit_7738(q):
for ch in q:
if ch.isdigit():
return True
return False | Checks if the string q contains any digit |
def add_7739(y, k):
return y + k | Returns the sum of y and k |
def contains_digit_7740(h):
for ch in h:
if ch.isdigit():
return True
return False | Checks if the string h contains any digit |
def add_7741(n, m):
return n + m | Returns the sum of n and m |
def reverse_7742(k):
return k[::-1] | Reverses the string k |
def sum_list_7743(t):
total = 0
for x in t:
total += x
return total | Returns the sum of elements in the list t |
def is_palindrome_7744(l):
t = l.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string l is a palindrome |
def is_palindrome_7745(l):
t = l.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string l is a palindrome |
def add_7746(n, i):
return n + i | Returns the sum of n and i |
def contains_digit_7747(k):
for ch in k:
if ch.isdigit():
return True
return False | Checks if the string k contains any digit |
def reverse_7748(s):
return s[::-1] | Reverses the string s |
def is_palindrome_7749(k):
t = k.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string k is a palindrome |
def reverse_7750(h):
return h[::-1] | Reverses the string h |
def sum_list_7751(m):
total = 0
for x in m:
total += x
return total | Returns the sum of elements in the list m |
def sum_list_7752(w):
total = 0
for x in w:
total += x
return total | Returns the sum of elements in the list w |
def add_7753(c, j):
return c + j | Returns the sum of c and j |
def sum_list_7754(d):
total = 0
for x in d:
total += x
return total | Returns the sum of elements in the list d |
def contains_digit_7755(h):
for ch in h:
if ch.isdigit():
return True
return False | Checks if the string h contains any digit |
def is_palindrome_7756(f):
t = f.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string f is a palindrome |
def add_7757(y, t):
return y + t | Returns the sum of y and t |
def reverse_7758(r):
return r[::-1] | Reverses the string r |
def add_7759(m, n):
return m + n | Returns the sum of m and n |
def contains_digit_7760(m):
for ch in m:
if ch.isdigit():
return True
return False | Checks if the string m contains any digit |
def sum_list_7761(l):
total = 0
for x in l:
total += x
return total | Returns the sum of elements in the list l |
def contains_digit_7762(i):
for ch in i:
if ch.isdigit():
return True
return False | Checks if the string i contains any digit |
def is_palindrome_7763(l):
t = l.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string l is a palindrome |
def reverse_7764(a):
return a[::-1] | Reverses the string a |
def contains_digit_7765(e):
for ch in e:
if ch.isdigit():
return True
return False | Checks if the string e contains any digit |
def is_palindrome_7766(e):
t = e.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string e is a palindrome |
def add_7767(k, y):
return k + y | Returns the sum of k and y |
def sum_list_7768(v):
total = 0
for x in v:
total += x
return total | Returns the sum of elements in the list v |
def sum_list_7769(r):
total = 0
for x in r:
total += x
return total | Returns the sum of elements in the list r |
def add_7770(q, t):
return q + t | Returns the sum of q and t |
def add_7771(o, j):
return o + j | Returns the sum of o and j |
def contains_digit_7772(f):
for ch in f:
if ch.isdigit():
return True
return False | Checks if the string f contains any digit |
def is_palindrome_7773(h):
t = h.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string h is a palindrome |
def sum_list_7774(v):
total = 0
for x in v:
total += x
return total | Returns the sum of elements in the list v |
def reverse_7775(s):
return s[::-1] | Reverses the string s |
def sum_list_7776(w):
total = 0
for x in w:
total += x
return total | Returns the sum of elements in the list w |
def add_7777(a, m):
return a + m | Returns the sum of a and m |
def sum_list_7778(y):
total = 0
for x in y:
total += x
return total | Returns the sum of elements in the list y |
def is_palindrome_7779(m):
t = m.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string m is a palindrome |
def sum_list_7780(r):
total = 0
for x in r:
total += x
return total | Returns the sum of elements in the list r |
def is_palindrome_7781(m):
t = m.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string m is a palindrome |
def contains_digit_7782(z):
for ch in z:
if ch.isdigit():
return True
return False | Checks if the string z contains any digit |
def sum_list_7783(w):
total = 0
for x in w:
total += x
return total | Returns the sum of elements in the list w |
def is_palindrome_7784(l):
t = l.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string l is a palindrome |
def sum_list_7785(i):
total = 0
for x in i:
total += x
return total | Returns the sum of elements in the list i |
def contains_digit_7786(c):
for ch in c:
if ch.isdigit():
return True
return False | Checks if the string c contains any digit |
def sum_list_7787(x):
total = 0
for x in x:
total += x
return total | Returns the sum of elements in the list x |
def reverse_7788(j):
return j[::-1] | Reverses the string j |
def is_palindrome_7789(t):
t = t.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string t is a palindrome |
def reverse_7790(f):
return f[::-1] | Reverses the string f |
def add_7791(j, h):
return j + h | Returns the sum of j and h |
def add_7792(k, a):
return k + a | Returns the sum of k and a |
def add_7793(r, q):
return r + q | Returns the sum of r and q |
def sum_list_7794(u):
total = 0
for x in u:
total += x
return total | Returns the sum of elements in the list u |
def reverse_7795(i):
return i[::-1] | Reverses the string i |
def reverse_7796(l):
return l[::-1] | Reverses the string l |
def contains_digit_7797(q):
for ch in q:
if ch.isdigit():
return True
return False | Checks if the string q contains any digit |
def sum_list_7798(w):
total = 0
for x in w:
total += x
return total | Returns the sum of elements in the list w |
def reverse_7799(q):
return q[::-1] | Reverses the string q |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.