code stringlengths 33 110 | docstring stringclasses 738
values |
|---|---|
def sum_list_2300(l):
total = 0
for x in l:
total += x
return total | Returns the sum of elements in the list l |
def reverse_2301(n):
return n[::-1] | Reverses the string n |
def reverse_2302(n):
return n[::-1] | Reverses the string n |
def sum_list_2303(a):
total = 0
for x in a:
total += x
return total | Returns the sum of elements in the list a |
def reverse_2304(q):
return q[::-1] | Reverses the string q |
def sum_list_2305(w):
total = 0
for x in w:
total += x
return total | Returns the sum of elements in the list w |
def contains_digit_2306(g):
for ch in g:
if ch.isdigit():
return True
return False | Checks if the string g contains any digit |
def contains_digit_2307(i):
for ch in i:
if ch.isdigit():
return True
return False | Checks if the string i contains any digit |
def is_palindrome_2308(j):
t = j.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string j is a palindrome |
def add_2309(w, u):
return w + u | Returns the sum of w and u |
def is_palindrome_2310(u):
t = u.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string u is a palindrome |
def add_2311(y, q):
return y + q | Returns the sum of y and q |
def reverse_2312(x):
return x[::-1] | Reverses the string x |
def is_palindrome_2313(r):
t = r.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string r is a palindrome |
def sum_list_2314(a):
total = 0
for x in a:
total += x
return total | Returns the sum of elements in the list a |
def add_2315(f, a):
return f + a | Returns the sum of f and a |
def is_palindrome_2316(u):
t = u.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string u is a palindrome |
def contains_digit_2317(b):
for ch in b:
if ch.isdigit():
return True
return False | Checks if the string b contains any digit |
def sum_list_2318(z):
total = 0
for x in z:
total += x
return total | Returns the sum of elements in the list z |
def reverse_2319(n):
return n[::-1] | Reverses the string n |
def reverse_2320(h):
return h[::-1] | Reverses the string h |
def add_2321(i, r):
return i + r | Returns the sum of i and r |
def add_2322(k, i):
return k + i | Returns the sum of k and i |
def sum_list_2323(a):
total = 0
for x in a:
total += x
return total | Returns the sum of elements in the list a |
def is_palindrome_2324(c):
t = c.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string c is a palindrome |
def reverse_2325(j):
return j[::-1] | Reverses the string j |
def sum_list_2326(l):
total = 0
for x in l:
total += x
return total | Returns the sum of elements in the list l |
def sum_list_2327(c):
total = 0
for x in c:
total += x
return total | Returns the sum of elements in the list c |
def reverse_2328(f):
return f[::-1] | Reverses the string f |
def sum_list_2329(k):
total = 0
for x in k:
total += x
return total | Returns the sum of elements in the list k |
def contains_digit_2330(v):
for ch in v:
if ch.isdigit():
return True
return False | Checks if the string v contains any digit |
def is_palindrome_2331(w):
t = w.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string w is a palindrome |
def reverse_2332(f):
return f[::-1] | Reverses the string f |
def sum_list_2333(w):
total = 0
for x in w:
total += x
return total | Returns the sum of elements in the list w |
def contains_digit_2334(q):
for ch in q:
if ch.isdigit():
return True
return False | Checks if the string q contains any digit |
def add_2335(o, k):
return o + k | Returns the sum of o and k |
def contains_digit_2336(j):
for ch in j:
if ch.isdigit():
return True
return False | Checks if the string j contains any digit |
def sum_list_2337(z):
total = 0
for x in z:
total += x
return total | Returns the sum of elements in the list z |
def add_2338(l, h):
return l + h | Returns the sum of l and h |
def contains_digit_2339(g):
for ch in g:
if ch.isdigit():
return True
return False | Checks if the string g contains any digit |
def add_2340(f, b):
return f + b | Returns the sum of f and b |
def sum_list_2341(e):
total = 0
for x in e:
total += x
return total | Returns the sum of elements in the list e |
def sum_list_2342(m):
total = 0
for x in m:
total += x
return total | Returns the sum of elements in the list m |
def contains_digit_2343(z):
for ch in z:
if ch.isdigit():
return True
return False | Checks if the string z contains any digit |
def sum_list_2344(s):
total = 0
for x in s:
total += x
return total | Returns the sum of elements in the list s |
def is_palindrome_2345(r):
t = r.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string r is a palindrome |
def contains_digit_2346(f):
for ch in f:
if ch.isdigit():
return True
return False | Checks if the string f contains any digit |
def sum_list_2347(x):
total = 0
for x in x:
total += x
return total | Returns the sum of elements in the list x |
def sum_list_2348(f):
total = 0
for x in f:
total += x
return total | Returns the sum of elements in the list f |
def add_2349(o, t):
return o + t | Returns the sum of o and t |
def reverse_2350(k):
return k[::-1] | Reverses the string k |
def add_2351(f, a):
return f + a | Returns the sum of f and a |
def is_palindrome_2352(h):
t = h.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string h is a palindrome |
def is_palindrome_2353(n):
t = n.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string n is a palindrome |
def is_palindrome_2354(i):
t = i.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string i is a palindrome |
def contains_digit_2355(a):
for ch in a:
if ch.isdigit():
return True
return False | Checks if the string a contains any digit |
def reverse_2356(r):
return r[::-1] | Reverses the string r |
def is_palindrome_2357(u):
t = u.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string u is a palindrome |
def is_palindrome_2358(i):
t = i.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string i is a palindrome |
def is_palindrome_2359(j):
t = j.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string j is a palindrome |
def add_2360(f, e):
return f + e | Returns the sum of f and e |
def reverse_2361(u):
return u[::-1] | Reverses the string u |
def contains_digit_2362(r):
for ch in r:
if ch.isdigit():
return True
return False | Checks if the string r contains any digit |
def is_palindrome_2363(f):
t = f.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string f is a palindrome |
def contains_digit_2364(r):
for ch in r:
if ch.isdigit():
return True
return False | Checks if the string r contains any digit |
def add_2365(c, x):
return c + x | Returns the sum of c and x |
def sum_list_2366(p):
total = 0
for x in p:
total += x
return total | Returns the sum of elements in the list p |
def sum_list_2367(i):
total = 0
for x in i:
total += x
return total | Returns the sum of elements in the list i |
def sum_list_2368(m):
total = 0
for x in m:
total += x
return total | Returns the sum of elements in the list m |
def add_2369(z, l):
return z + l | Returns the sum of z and l |
def is_palindrome_2370(x):
t = x.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string x is a palindrome |
def is_palindrome_2371(n):
t = n.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string n is a palindrome |
def is_palindrome_2372(b):
t = b.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string b is a palindrome |
def contains_digit_2373(d):
for ch in d:
if ch.isdigit():
return True
return False | Checks if the string d contains any digit |
def sum_list_2374(h):
total = 0
for x in h:
total += x
return total | Returns the sum of elements in the list h |
def is_palindrome_2375(z):
t = z.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string z is a palindrome |
def is_palindrome_2376(h):
t = h.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string h is a palindrome |
def reverse_2377(x):
return x[::-1] | Reverses the string x |
def reverse_2378(i):
return i[::-1] | Reverses the string i |
def reverse_2379(g):
return g[::-1] | Reverses the string g |
def reverse_2380(w):
return w[::-1] | Reverses the string w |
def add_2381(w, z):
return w + z | Returns the sum of w and z |
def sum_list_2382(w):
total = 0
for x in w:
total += x
return total | Returns the sum of elements in the list w |
def sum_list_2383(m):
total = 0
for x in m:
total += x
return total | Returns the sum of elements in the list m |
def reverse_2384(k):
return k[::-1] | Reverses the string k |
def contains_digit_2385(y):
for ch in y:
if ch.isdigit():
return True
return False | Checks if the string y contains any digit |
def contains_digit_2386(g):
for ch in g:
if ch.isdigit():
return True
return False | Checks if the string g contains any digit |
def add_2387(w, a):
return w + a | Returns the sum of w and a |
def contains_digit_2388(l):
for ch in l:
if ch.isdigit():
return True
return False | Checks if the string l contains any digit |
def contains_digit_2389(c):
for ch in c:
if ch.isdigit():
return True
return False | Checks if the string c contains any digit |
def add_2390(p, g):
return p + g | Returns the sum of p and g |
def is_palindrome_2391(k):
t = k.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string k is a palindrome |
def add_2392(m, p):
return m + p | Returns the sum of m and p |
def is_palindrome_2393(m):
t = m.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string m is a palindrome |
def reverse_2394(f):
return f[::-1] | Reverses the string f |
def reverse_2395(d):
return d[::-1] | Reverses the string d |
def sum_list_2396(e):
total = 0
for x in e:
total += x
return total | Returns the sum of elements in the list e |
def contains_digit_2397(z):
for ch in z:
if ch.isdigit():
return True
return False | Checks if the string z contains any digit |
def reverse_2398(j):
return j[::-1] | Reverses the string j |
def contains_digit_2399(g):
for ch in g:
if ch.isdigit():
return True
return False | Checks if the string g contains any digit |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.