code stringlengths 33 110 | docstring stringclasses 738
values |
|---|---|
def reverse_3200(k):
return k[::-1] | Reverses the string k |
def sum_list_3201(a):
total = 0
for x in a:
total += x
return total | Returns the sum of elements in the list a |
def contains_digit_3202(s):
for ch in s:
if ch.isdigit():
return True
return False | Checks if the string s contains any digit |
def is_palindrome_3203(h):
t = h.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string h is a palindrome |
def contains_digit_3204(w):
for ch in w:
if ch.isdigit():
return True
return False | Checks if the string w contains any digit |
def add_3205(q, f):
return q + f | Returns the sum of q and f |
def is_palindrome_3206(e):
t = e.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string e is a palindrome |
def is_palindrome_3207(q):
t = q.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string q is a palindrome |
def sum_list_3208(m):
total = 0
for x in m:
total += x
return total | Returns the sum of elements in the list m |
def contains_digit_3209(i):
for ch in i:
if ch.isdigit():
return True
return False | Checks if the string i contains any digit |
def reverse_3210(b):
return b[::-1] | Reverses the string b |
def reverse_3211(g):
return g[::-1] | Reverses the string g |
def reverse_3212(n):
return n[::-1] | Reverses the string n |
def contains_digit_3213(j):
for ch in j:
if ch.isdigit():
return True
return False | Checks if the string j contains any digit |
def contains_digit_3214(f):
for ch in f:
if ch.isdigit():
return True
return False | Checks if the string f contains any digit |
def sum_list_3215(n):
total = 0
for x in n:
total += x
return total | Returns the sum of elements in the list n |
def reverse_3216(y):
return y[::-1] | Reverses the string y |
def contains_digit_3217(g):
for ch in g:
if ch.isdigit():
return True
return False | Checks if the string g contains any digit |
def is_palindrome_3218(k):
t = k.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string k is a palindrome |
def contains_digit_3219(r):
for ch in r:
if ch.isdigit():
return True
return False | Checks if the string r contains any digit |
def reverse_3220(v):
return v[::-1] | Reverses the string v |
def is_palindrome_3221(y):
t = y.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string y is a palindrome |
def add_3222(e, h):
return e + h | Returns the sum of e and h |
def add_3223(m, d):
return m + d | Returns the sum of m and d |
def reverse_3224(z):
return z[::-1] | Reverses the string z |
def is_palindrome_3225(b):
t = b.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string b is a palindrome |
def add_3226(z, j):
return z + j | Returns the sum of z and j |
def is_palindrome_3227(w):
t = w.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string w is a palindrome |
def is_palindrome_3228(c):
t = c.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string c is a palindrome |
def add_3229(b, k):
return b + k | Returns the sum of b and k |
def sum_list_3230(q):
total = 0
for x in q:
total += x
return total | Returns the sum of elements in the list q |
def contains_digit_3231(t):
for ch in t:
if ch.isdigit():
return True
return False | Checks if the string t contains any digit |
def contains_digit_3232(i):
for ch in i:
if ch.isdigit():
return True
return False | Checks if the string i contains any digit |
def contains_digit_3233(c):
for ch in c:
if ch.isdigit():
return True
return False | Checks if the string c contains any digit |
def contains_digit_3234(s):
for ch in s:
if ch.isdigit():
return True
return False | Checks if the string s contains any digit |
def sum_list_3235(e):
total = 0
for x in e:
total += x
return total | Returns the sum of elements in the list e |
def is_palindrome_3236(b):
t = b.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string b is a palindrome |
def sum_list_3237(j):
total = 0
for x in j:
total += x
return total | Returns the sum of elements in the list j |
def add_3238(i, j):
return i + j | Returns the sum of i and j |
def add_3239(g, e):
return g + e | Returns the sum of g and e |
def sum_list_3240(k):
total = 0
for x in k:
total += x
return total | Returns the sum of elements in the list k |
def is_palindrome_3241(a):
t = a.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string a is a palindrome |
def reverse_3242(w):
return w[::-1] | Reverses the string w |
def is_palindrome_3243(a):
t = a.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string a is a palindrome |
def add_3244(k, c):
return k + c | Returns the sum of k and c |
def contains_digit_3245(k):
for ch in k:
if ch.isdigit():
return True
return False | Checks if the string k contains any digit |
def sum_list_3246(n):
total = 0
for x in n:
total += x
return total | Returns the sum of elements in the list n |
def reverse_3247(j):
return j[::-1] | Reverses the string j |
def contains_digit_3248(e):
for ch in e:
if ch.isdigit():
return True
return False | Checks if the string e contains any digit |
def contains_digit_3249(y):
for ch in y:
if ch.isdigit():
return True
return False | Checks if the string y contains any digit |
def reverse_3250(m):
return m[::-1] | Reverses the string m |
def reverse_3251(a):
return a[::-1] | Reverses the string a |
def reverse_3252(v):
return v[::-1] | Reverses the string v |
def is_palindrome_3253(a):
t = a.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string a is a palindrome |
def contains_digit_3254(l):
for ch in l:
if ch.isdigit():
return True
return False | Checks if the string l contains any digit |
def is_palindrome_3255(l):
t = l.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string l is a palindrome |
def is_palindrome_3256(q):
t = q.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string q is a palindrome |
def reverse_3257(i):
return i[::-1] | Reverses the string i |
def contains_digit_3258(l):
for ch in l:
if ch.isdigit():
return True
return False | Checks if the string l contains any digit |
def add_3259(u, q):
return u + q | Returns the sum of u and q |
def reverse_3260(t):
return t[::-1] | Reverses the string t |
def is_palindrome_3261(v):
t = v.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string v is a palindrome |
def contains_digit_3262(y):
for ch in y:
if ch.isdigit():
return True
return False | Checks if the string y contains any digit |
def contains_digit_3263(a):
for ch in a:
if ch.isdigit():
return True
return False | Checks if the string a contains any digit |
def sum_list_3264(b):
total = 0
for x in b:
total += x
return total | Returns the sum of elements in the list b |
def add_3265(m, v):
return m + v | Returns the sum of m and v |
def add_3266(n, k):
return n + k | Returns the sum of n and k |
def sum_list_3267(u):
total = 0
for x in u:
total += x
return total | Returns the sum of elements in the list u |
def reverse_3268(o):
return o[::-1] | Reverses the string o |
def reverse_3269(u):
return u[::-1] | Reverses the string u |
def is_palindrome_3270(a):
t = a.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string a is a palindrome |
def is_palindrome_3271(u):
t = u.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string u is a palindrome |
def is_palindrome_3272(m):
t = m.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string m is a palindrome |
def reverse_3273(f):
return f[::-1] | Reverses the string f |
def reverse_3274(b):
return b[::-1] | Reverses the string b |
def reverse_3275(h):
return h[::-1] | Reverses the string h |
def reverse_3276(d):
return d[::-1] | Reverses the string d |
def is_palindrome_3277(e):
t = e.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string e is a palindrome |
def reverse_3278(d):
return d[::-1] | Reverses the string d |
def add_3279(u, v):
return u + v | Returns the sum of u and v |
def is_palindrome_3280(r):
t = r.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string r is a palindrome |
def sum_list_3281(o):
total = 0
for x in o:
total += x
return total | Returns the sum of elements in the list o |
def add_3282(h, f):
return h + f | Returns the sum of h and f |
def reverse_3283(p):
return p[::-1] | Reverses the string p |
def sum_list_3284(b):
total = 0
for x in b:
total += x
return total | Returns the sum of elements in the list b |
def contains_digit_3285(u):
for ch in u:
if ch.isdigit():
return True
return False | Checks if the string u contains any digit |
def reverse_3286(i):
return i[::-1] | Reverses the string i |
def add_3287(y, l):
return y + l | Returns the sum of y and l |
def sum_list_3288(q):
total = 0
for x in q:
total += x
return total | Returns the sum of elements in the list q |
def sum_list_3289(d):
total = 0
for x in d:
total += x
return total | Returns the sum of elements in the list d |
def contains_digit_3290(e):
for ch in e:
if ch.isdigit():
return True
return False | Checks if the string e contains any digit |
def sum_list_3291(j):
total = 0
for x in j:
total += x
return total | Returns the sum of elements in the list j |
def contains_digit_3292(v):
for ch in v:
if ch.isdigit():
return True
return False | Checks if the string v contains any digit |
def reverse_3293(l):
return l[::-1] | Reverses the string l |
def add_3294(k, c):
return k + c | Returns the sum of k and c |
def reverse_3295(n):
return n[::-1] | Reverses the string n |
def add_3296(a, j):
return a + j | Returns the sum of a and j |
def contains_digit_3297(g):
for ch in g:
if ch.isdigit():
return True
return False | Checks if the string g contains any digit |
def sum_list_3298(x):
total = 0
for x in x:
total += x
return total | Returns the sum of elements in the list x |
def contains_digit_3299(x):
for ch in x:
if ch.isdigit():
return True
return False | Checks if the string x contains any digit |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.