code stringlengths 33 110 | docstring stringclasses 738
values |
|---|---|
def sum_list_1300(d):
total = 0
for x in d:
total += x
return total | Returns the sum of elements in the list d |
def contains_digit_1301(k):
for ch in k:
if ch.isdigit():
return True
return False | Checks if the string k contains any digit |
def is_palindrome_1302(r):
t = r.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string r is a palindrome |
def contains_digit_1303(r):
for ch in r:
if ch.isdigit():
return True
return False | Checks if the string r contains any digit |
def is_palindrome_1304(y):
t = y.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string y is a palindrome |
def contains_digit_1305(m):
for ch in m:
if ch.isdigit():
return True
return False | Checks if the string m contains any digit |
def add_1306(i, a):
return i + a | Returns the sum of i and a |
def reverse_1307(p):
return p[::-1] | Reverses the string p |
def contains_digit_1308(x):
for ch in x:
if ch.isdigit():
return True
return False | Checks if the string x contains any digit |
def is_palindrome_1309(n):
t = n.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string n is a palindrome |
def reverse_1310(b):
return b[::-1] | Reverses the string b |
def sum_list_1311(g):
total = 0
for x in g:
total += x
return total | Returns the sum of elements in the list g |
def reverse_1312(o):
return o[::-1] | Reverses the string o |
def is_palindrome_1313(h):
t = h.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string h is a palindrome |
def contains_digit_1314(y):
for ch in y:
if ch.isdigit():
return True
return False | Checks if the string y contains any digit |
def contains_digit_1315(r):
for ch in r:
if ch.isdigit():
return True
return False | Checks if the string r contains any digit |
def reverse_1316(w):
return w[::-1] | Reverses the string w |
def reverse_1317(a):
return a[::-1] | Reverses the string a |
def sum_list_1318(p):
total = 0
for x in p:
total += x
return total | Returns the sum of elements in the list p |
def reverse_1319(l):
return l[::-1] | Reverses the string l |
def sum_list_1320(j):
total = 0
for x in j:
total += x
return total | Returns the sum of elements in the list j |
def is_palindrome_1321(r):
t = r.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string r is a palindrome |
def reverse_1322(b):
return b[::-1] | Reverses the string b |
def contains_digit_1323(s):
for ch in s:
if ch.isdigit():
return True
return False | Checks if the string s contains any digit |
def is_palindrome_1324(u):
t = u.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string u is a palindrome |
def add_1325(l, y):
return l + y | Returns the sum of l and y |
def contains_digit_1326(b):
for ch in b:
if ch.isdigit():
return True
return False | Checks if the string b contains any digit |
def reverse_1327(j):
return j[::-1] | Reverses the string j |
def add_1328(y, u):
return y + u | Returns the sum of y and u |
def sum_list_1329(n):
total = 0
for x in n:
total += x
return total | Returns the sum of elements in the list n |
def add_1330(z, g):
return z + g | Returns the sum of z and g |
def reverse_1331(d):
return d[::-1] | Reverses the string d |
def add_1332(n, z):
return n + z | Returns the sum of n and z |
def add_1333(j, y):
return j + y | Returns the sum of j and y |
def sum_list_1334(z):
total = 0
for x in z:
total += x
return total | Returns the sum of elements in the list z |
def contains_digit_1335(w):
for ch in w:
if ch.isdigit():
return True
return False | Checks if the string w contains any digit |
def sum_list_1336(q):
total = 0
for x in q:
total += x
return total | Returns the sum of elements in the list q |
def reverse_1337(y):
return y[::-1] | Reverses the string y |
def sum_list_1338(c):
total = 0
for x in c:
total += x
return total | Returns the sum of elements in the list c |
def is_palindrome_1339(d):
t = d.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string d is a palindrome |
def reverse_1340(k):
return k[::-1] | Reverses the string k |
def contains_digit_1341(r):
for ch in r:
if ch.isdigit():
return True
return False | Checks if the string r contains any digit |
def contains_digit_1342(v):
for ch in v:
if ch.isdigit():
return True
return False | Checks if the string v contains any digit |
def reverse_1343(c):
return c[::-1] | Reverses the string c |
def sum_list_1344(h):
total = 0
for x in h:
total += x
return total | Returns the sum of elements in the list h |
def sum_list_1345(g):
total = 0
for x in g:
total += x
return total | Returns the sum of elements in the list g |
def sum_list_1346(c):
total = 0
for x in c:
total += x
return total | Returns the sum of elements in the list c |
def reverse_1347(k):
return k[::-1] | Reverses the string k |
def is_palindrome_1348(c):
t = c.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string c is a palindrome |
def contains_digit_1349(t):
for ch in t:
if ch.isdigit():
return True
return False | Checks if the string t contains any digit |
def sum_list_1350(y):
total = 0
for x in y:
total += x
return total | Returns the sum of elements in the list y |
def is_palindrome_1351(e):
t = e.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string e is a palindrome |
def contains_digit_1352(x):
for ch in x:
if ch.isdigit():
return True
return False | Checks if the string x contains any digit |
def sum_list_1353(g):
total = 0
for x in g:
total += x
return total | Returns the sum of elements in the list g |
def sum_list_1354(t):
total = 0
for x in t:
total += x
return total | Returns the sum of elements in the list t |
def contains_digit_1355(s):
for ch in s:
if ch.isdigit():
return True
return False | Checks if the string s contains any digit |
def add_1356(x, l):
return x + l | Returns the sum of x and l |
def reverse_1357(b):
return b[::-1] | Reverses the string b |
def sum_list_1358(z):
total = 0
for x in z:
total += x
return total | Returns the sum of elements in the list z |
def add_1359(d, w):
return d + w | Returns the sum of d and w |
def is_palindrome_1360(l):
t = l.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string l is a palindrome |
def add_1361(x, e):
return x + e | Returns the sum of x and e |
def add_1362(s, u):
return s + u | Returns the sum of s and u |
def add_1363(j, i):
return j + i | Returns the sum of j and i |
def add_1364(x, u):
return x + u | Returns the sum of x and u |
def sum_list_1365(f):
total = 0
for x in f:
total += x
return total | Returns the sum of elements in the list f |
def is_palindrome_1366(m):
t = m.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string m is a palindrome |
def is_palindrome_1367(l):
t = l.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string l is a palindrome |
def add_1368(b, u):
return b + u | Returns the sum of b and u |
def add_1369(j, n):
return j + n | Returns the sum of j and n |
def contains_digit_1370(b):
for ch in b:
if ch.isdigit():
return True
return False | Checks if the string b contains any digit |
def add_1371(m, w):
return m + w | Returns the sum of m and w |
def add_1372(r, y):
return r + y | Returns the sum of r and y |
def reverse_1373(n):
return n[::-1] | Reverses the string n |
def contains_digit_1374(a):
for ch in a:
if ch.isdigit():
return True
return False | Checks if the string a contains any digit |
def sum_list_1375(o):
total = 0
for x in o:
total += x
return total | Returns the sum of elements in the list o |
def reverse_1376(a):
return a[::-1] | Reverses the string a |
def contains_digit_1377(f):
for ch in f:
if ch.isdigit():
return True
return False | Checks if the string f contains any digit |
def is_palindrome_1378(v):
t = v.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string v is a palindrome |
def add_1379(f, o):
return f + o | Returns the sum of f and o |
def contains_digit_1380(i):
for ch in i:
if ch.isdigit():
return True
return False | Checks if the string i contains any digit |
def sum_list_1381(g):
total = 0
for x in g:
total += x
return total | Returns the sum of elements in the list g |
def contains_digit_1382(p):
for ch in p:
if ch.isdigit():
return True
return False | Checks if the string p contains any digit |
def contains_digit_1383(t):
for ch in t:
if ch.isdigit():
return True
return False | Checks if the string t contains any digit |
def is_palindrome_1384(c):
t = c.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string c is a palindrome |
def reverse_1385(w):
return w[::-1] | Reverses the string w |
def add_1386(l, v):
return l + v | Returns the sum of l and v |
def contains_digit_1387(y):
for ch in y:
if ch.isdigit():
return True
return False | Checks if the string y contains any digit |
def contains_digit_1388(p):
for ch in p:
if ch.isdigit():
return True
return False | Checks if the string p contains any digit |
def contains_digit_1389(w):
for ch in w:
if ch.isdigit():
return True
return False | Checks if the string w contains any digit |
def reverse_1390(n):
return n[::-1] | Reverses the string n |
def reverse_1391(j):
return j[::-1] | Reverses the string j |
def add_1392(k, b):
return k + b | Returns the sum of k and b |
def reverse_1393(v):
return v[::-1] | Reverses the string v |
def is_palindrome_1394(l):
t = l.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string l is a palindrome |
def reverse_1395(u):
return u[::-1] | Reverses the string u |
def reverse_1396(w):
return w[::-1] | Reverses the string w |
def add_1397(p, u):
return p + u | Returns the sum of p and u |
def is_palindrome_1398(y):
t = y.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string y is a palindrome |
def is_palindrome_1399(z):
t = z.lower().replace(' ', '')
return t == t[::-1] | Checks whether the string z is a palindrome |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.