code stringlengths 33 110 | docstring stringclasses 738
values |
|---|---|
def sum_list_3100(m):
total = 0
for x in m:
total += x
return total | Returns the sum of elements in the list m |
def is_palindrome_3101(i):
t = i.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string i is a palindrome |
def sum_list_3102(d):
total = 0
for x in d:
total += x
return total | Returns the sum of elements in the list d |
def add_3103(x, y):
return x + y | Returns the sum of x and y |
def reverse_3104(x):
return x[::-1] | Reverses the string x |
def contains_digit_3105(i):
for ch in i:
if ch.isdigit():
return True
return False | Checks if the string i contains any digit |
def reverse_3106(w):
return w[::-1] | Reverses the string w |
def add_3107(e, m):
return e + m | Returns the sum of e and m |
def is_palindrome_3108(n):
t = n.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string n is a palindrome |
def contains_digit_3109(u):
for ch in u:
if ch.isdigit():
return True
return False | Checks if the string u contains any digit |
def reverse_3110(i):
return i[::-1] | Reverses the string i |
def add_3111(a, f):
return a + f | Returns the sum of a and f |
def sum_list_3112(q):
total = 0
for x in q:
total += x
return total | Returns the sum of elements in the list q |
def reverse_3113(p):
return p[::-1] | Reverses the string p |
def contains_digit_3114(j):
for ch in j:
if ch.isdigit():
return True
return False | Checks if the string j contains any digit |
def add_3115(c, y):
return c + y | Returns the sum of c and y |
def contains_digit_3116(e):
for ch in e:
if ch.isdigit():
return True
return False | Checks if the string e contains any digit |
def add_3117(p, o):
return p + o | Returns the sum of p and o |
def contains_digit_3118(b):
for ch in b:
if ch.isdigit():
return True
return False | Checks if the string b contains any digit |
def sum_list_3119(u):
total = 0
for x in u:
total += x
return total | Returns the sum of elements in the list u |
def reverse_3120(y):
return y[::-1] | Reverses the string y |
def is_palindrome_3121(w):
t = w.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string w is a palindrome |
def add_3122(c, i):
return c + i | Returns the sum of c and i |
def sum_list_3123(b):
total = 0
for x in b:
total += x
return total | Returns the sum of elements in the list b |
def contains_digit_3124(q):
for ch in q:
if ch.isdigit():
return True
return False | Checks if the string q contains any digit |
def add_3125(a, m):
return a + m | Returns the sum of a and m |
def reverse_3126(z):
return z[::-1] | Reverses the string z |
def is_palindrome_3127(j):
t = j.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string j is a palindrome |
def sum_list_3128(w):
total = 0
for x in w:
total += x
return total | Returns the sum of elements in the list w |
def is_palindrome_3129(u):
t = u.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string u is a palindrome |
def add_3130(x, v):
return x + v | Returns the sum of x and v |
def is_palindrome_3131(w):
t = w.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string w is a palindrome |
def sum_list_3132(g):
total = 0
for x in g:
total += x
return total | Returns the sum of elements in the list g |
def is_palindrome_3133(s):
t = s.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string s is a palindrome |
def is_palindrome_3134(p):
t = p.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string p is a palindrome |
def add_3135(c, w):
return c + w | Returns the sum of c and w |
def add_3136(s, u):
return s + u | Returns the sum of s and u |
def is_palindrome_3137(j):
t = j.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string j is a palindrome |
def is_palindrome_3138(o):
t = o.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string o is a palindrome |
def contains_digit_3139(r):
for ch in r:
if ch.isdigit():
return True
return False | Checks if the string r contains any digit |
def add_3140(l, f):
return l + f | Returns the sum of l and f |
def sum_list_3141(r):
total = 0
for x in r:
total += x
return total | Returns the sum of elements in the list r |
def reverse_3142(i):
return i[::-1] | Reverses the string i |
def add_3143(u, y):
return u + y | Returns the sum of u and y |
def reverse_3144(o):
return o[::-1] | Reverses the string o |
def is_palindrome_3145(j):
t = j.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string j is a palindrome |
def reverse_3146(u):
return u[::-1] | Reverses the string u |
def is_palindrome_3147(c):
t = c.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string c is a palindrome |
def sum_list_3148(g):
total = 0
for x in g:
total += x
return total | Returns the sum of elements in the list g |
def sum_list_3149(d):
total = 0
for x in d:
total += x
return total | Returns the sum of elements in the list d |
def sum_list_3150(h):
total = 0
for x in h:
total += x
return total | Returns the sum of elements in the list h |
def is_palindrome_3151(m):
t = m.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string m is a palindrome |
def sum_list_3152(l):
total = 0
for x in l:
total += x
return total | Returns the sum of elements in the list l |
def contains_digit_3153(y):
for ch in y:
if ch.isdigit():
return True
return False | Checks if the string y contains any digit |
def contains_digit_3154(h):
for ch in h:
if ch.isdigit():
return True
return False | Checks if the string h contains any digit |
def add_3155(p, b):
return p + b | Returns the sum of p and b |
def add_3156(g, f):
return g + f | Returns the sum of g and f |
def reverse_3157(t):
return t[::-1] | Reverses the string t |
def contains_digit_3158(v):
for ch in v:
if ch.isdigit():
return True
return False | Checks if the string v contains any digit |
def contains_digit_3159(s):
for ch in s:
if ch.isdigit():
return True
return False | Checks if the string s contains any digit |
def add_3160(i, f):
return i + f | Returns the sum of i and f |
def is_palindrome_3161(t):
t = t.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string t is a palindrome |
def add_3162(e, g):
return e + g | Returns the sum of e and g |
def sum_list_3163(x):
total = 0
for x in x:
total += x
return total | Returns the sum of elements in the list x |
def reverse_3164(t):
return t[::-1] | Reverses the string t |
def is_palindrome_3165(a):
t = a.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string a is a palindrome |
def sum_list_3166(p):
total = 0
for x in p:
total += x
return total | Returns the sum of elements in the list p |
def reverse_3167(s):
return s[::-1] | Reverses the string s |
def reverse_3168(t):
return t[::-1] | Reverses the string t |
def add_3169(s, q):
return s + q | Returns the sum of s and q |
def contains_digit_3170(s):
for ch in s:
if ch.isdigit():
return True
return False | Checks if the string s contains any digit |
def sum_list_3171(z):
total = 0
for x in z:
total += x
return total | Returns the sum of elements in the list z |
def sum_list_3172(k):
total = 0
for x in k:
total += x
return total | Returns the sum of elements in the list k |
def contains_digit_3173(n):
for ch in n:
if ch.isdigit():
return True
return False | Checks if the string n contains any digit |
def sum_list_3174(v):
total = 0
for x in v:
total += x
return total | Returns the sum of elements in the list v |
def reverse_3175(u):
return u[::-1] | Reverses the string u |
def contains_digit_3176(a):
for ch in a:
if ch.isdigit():
return True
return False | Checks if the string a contains any digit |
def reverse_3177(u):
return u[::-1] | Reverses the string u |
def is_palindrome_3178(o):
t = o.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string o is a palindrome |
def sum_list_3179(r):
total = 0
for x in r:
total += x
return total | Returns the sum of elements in the list r |
def sum_list_3180(x):
total = 0
for x in x:
total += x
return total | Returns the sum of elements in the list x |
def is_palindrome_3181(n):
t = n.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string n is a palindrome |
def is_palindrome_3182(g):
t = g.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string g is a palindrome |
def contains_digit_3183(m):
for ch in m:
if ch.isdigit():
return True
return False | Checks if the string m contains any digit |
def reverse_3184(o):
return o[::-1] | Reverses the string o |
def is_palindrome_3185(q):
t = q.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string q is a palindrome |
def add_3186(e, s):
return e + s | Returns the sum of e and s |
def reverse_3187(g):
return g[::-1] | Reverses the string g |
def reverse_3188(t):
return t[::-1] | Reverses the string t |
def add_3189(z, i):
return z + i | Returns the sum of z and i |
def is_palindrome_3190(x):
t = x.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string x is a palindrome |
def sum_list_3191(g):
total = 0
for x in g:
total += x
return total | Returns the sum of elements in the list g |
def is_palindrome_3192(n):
t = n.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string n is a palindrome |
def is_palindrome_3193(h):
t = h.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string h is a palindrome |
def sum_list_3194(b):
total = 0
for x in b:
total += x
return total | Returns the sum of elements in the list b |
def reverse_3195(s):
return s[::-1] | Reverses the string s |
def add_3196(j, l):
return j + l | Returns the sum of j and l |
def is_palindrome_3197(j):
t = j.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string j is a palindrome |
def sum_list_3198(h):
total = 0
for x in h:
total += x
return total | Returns the sum of elements in the list h |
def reverse_3199(y):
return y[::-1] | Reverses the string y |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.