code
stringlengths 14
580
| varname
stringlengths 1
25
| vartype
stringclasses 13
values |
---|---|---|
n, m = 362,496
if m < n:
rounded_avg = -1
summation = 0
for i in range(n, m+1): | n | int |
n, m = 362,496
if m < n:
rounded_avg = -1
summation = 0
for i in range(n, m+1): | summation | int |
x = [15, 33, 1422, 1]
odd_digit_elements = [] | odd_digit_elements | list |
x = [15, 33, 1422, 1]
odd_digit_elements = [] | x | list |
x = [15, 33, 1422, 1]
odd_digit_elements = []
for i in x: | i | int |
x = [15, 33, 1422, 1]
odd_digit_elements = []
for i in x: | odd_digit_elements | list |
x = [15, 33, 1422, 1]
odd_digit_elements = []
for i in x: | x | list |
x = [15, 33, 1422, 1]
odd_digit_elements = []
for i in x:
if all (int(c) % 2 == 1 for c in str(i)): | i | int |
x = [15, 33, 1422, 1]
odd_digit_elements = []
for i in x:
if all (int(c) % 2 == 1 for c in str(i)): | odd_digit_elements | list |
x = [15, 33, 1422, 1]
odd_digit_elements = []
for i in x:
if all (int(c) % 2 == 1 for c in str(i)): | x | list |
x = [15, 33, 1422, 1]
odd_digit_elements = []
for i in x:
if all (int(c) % 2 == 1 for c in str(i)):
odd_digit_elements.append(i)
unique_digits = sorted(odd_digit_elements) | i | int |
x = [15, 33, 1422, 1]
odd_digit_elements = []
for i in x:
if all (int(c) % 2 == 1 for c in str(i)):
odd_digit_elements.append(i)
unique_digits = sorted(odd_digit_elements) | odd_digit_elements | list |
x = [15, 33, 1422, 1]
odd_digit_elements = []
for i in x:
if all (int(c) % 2 == 1 for c in str(i)):
odd_digit_elements.append(i)
unique_digits = sorted(odd_digit_elements) | unique_digits | list |
x = [15, 33, 1422, 1]
odd_digit_elements = []
for i in x:
if all (int(c) % 2 == 1 for c in str(i)):
odd_digit_elements.append(i)
unique_digits = sorted(odd_digit_elements) | x | list |
arr = [2, 1, 1, 4, 5, 8, 2, 3]
dic = {
1: "One",
2: "Two",
3: "Three",
4: "Four",
5: "Five",
6: "Six",
7: "Seven",
8: "Eight",
9: "Nine",
} | arr | list |
arr = [2, 1, 1, 4, 5, 8, 2, 3]
dic = {
1: "One",
2: "Two",
3: "Three",
4: "Four",
5: "Five",
6: "Six",
7: "Seven",
8: "Eight",
9: "Nine",
} | dic | dict |
arr = [2, 1, 1, 4, 5, 8, 2, 3]
dic = {
1: "One",
2: "Two",
3: "Three",
4: "Four",
5: "Five",
6: "Six",
7: "Seven",
8: "Eight",
9: "Nine",
}
sorted_arr = sorted(arr, reverse=True) | arr | list |
arr = [2, 1, 1, 4, 5, 8, 2, 3]
dic = {
1: "One",
2: "Two",
3: "Three",
4: "Four",
5: "Five",
6: "Six",
7: "Seven",
8: "Eight",
9: "Nine",
}
sorted_arr = sorted(arr, reverse=True) | dic | dict |
arr = [2, 1, 1, 4, 5, 8, 2, 3]
dic = {
1: "One",
2: "Two",
3: "Three",
4: "Four",
5: "Five",
6: "Six",
7: "Seven",
8: "Eight",
9: "Nine",
}
sorted_arr = sorted(arr, reverse=True) | sorted_arr | list |
n = 7
ret = []
for i in range(1,n+1):
if i%2 == 0:
x = 1
for j in range(1,i+1): x *= j
ret += [x] | i | int |
n = 7
ret = []
for i in range(1,n+1):
if i%2 == 0:
x = 1
for j in range(1,i+1): x *= j
ret += [x] | j | int |
n = 7
ret = []
for i in range(1,n+1):
if i%2 == 0:
x = 1
for j in range(1,i+1): x *= j
ret += [x] | n | int |
n = 7
ret = []
for i in range(1,n+1):
if i%2 == 0:
x = 1
for j in range(1,i+1): x *= j
ret += [x] | ret | list |
n = 7
ret = []
for i in range(1,n+1):
if i%2 == 0:
x = 1
for j in range(1,i+1): x *= j
ret += [x] | x | int |
n = 7
ret = []
for i in range(1,n+1):
if i%2 == 0: | i | int |
n = 7
ret = []
for i in range(1,n+1):
if i%2 == 0: | n | int |
n = 7
ret = []
for i in range(1,n+1):
if i%2 == 0: | ret | list |
n = 7
ret = []
for i in range(1,n+1):
if i%2 == 0:
x = 1
for j in range(1,i+1): x *= j | i | int |
n = 7
ret = []
for i in range(1,n+1):
if i%2 == 0:
x = 1
for j in range(1,i+1): x *= j | j | int |
n = 7
ret = []
for i in range(1,n+1):
if i%2 == 0:
x = 1
for j in range(1,i+1): x *= j | n | int |
n = 7
ret = []
for i in range(1,n+1):
if i%2 == 0:
x = 1
for j in range(1,i+1): x *= j | ret | list |
n = 7
ret = []
for i in range(1,n+1):
if i%2 == 0:
x = 1
for j in range(1,i+1): x *= j | x | int |
n = 7
ret = []
for i in range(1,n+1):
if i%2 == 0:
x = 1 | i | int |
n = 7
ret = []
for i in range(1,n+1):
if i%2 == 0:
x = 1 | n | int |
n = 7
ret = []
for i in range(1,n+1):
if i%2 == 0:
x = 1 | ret | list |
n = 7
ret = []
for i in range(1,n+1):
if i%2 == 0:
x = 1 | x | int |
n = 25
def is_palindrome(n):
even_odd_palindrome = str(n) == str(n)[::-1]
| is_palindrome | function |
n = 25
def is_palindrome(n):
even_odd_palindrome = str(n) == str(n)[::-1]
| n | int |
n = 25
def is_palindrome(n):
even_odd_palindrome = str(n) == str(n)[::-1]
even_palindrome_count = 0
odd_palindrome_count = 0
for i in range(1, n+1):
if i%2 == 1 and is_palindrome(i):
odd_palindrome_count += 1
elif i%2 == 0 and is_palindrome(i):
even_palindrome_count += 1
even_odd_palindrome = (even_palindrome_count, odd_palindrome_count) | even_odd_palindrome | tuple |
n = 25
def is_palindrome(n):
even_odd_palindrome = str(n) == str(n)[::-1]
even_palindrome_count = 0
odd_palindrome_count = 0
for i in range(1, n+1):
if i%2 == 1 and is_palindrome(i):
odd_palindrome_count += 1
elif i%2 == 0 and is_palindrome(i):
even_palindrome_count += 1
even_odd_palindrome = (even_palindrome_count, odd_palindrome_count) | even_palindrome_count | int |
n = 25
def is_palindrome(n):
even_odd_palindrome = str(n) == str(n)[::-1]
even_palindrome_count = 0
odd_palindrome_count = 0
for i in range(1, n+1):
if i%2 == 1 and is_palindrome(i):
odd_palindrome_count += 1
elif i%2 == 0 and is_palindrome(i):
even_palindrome_count += 1
even_odd_palindrome = (even_palindrome_count, odd_palindrome_count) | i | int |
n = 25
def is_palindrome(n):
even_odd_palindrome = str(n) == str(n)[::-1]
even_palindrome_count = 0
odd_palindrome_count = 0
for i in range(1, n+1):
if i%2 == 1 and is_palindrome(i):
odd_palindrome_count += 1
elif i%2 == 0 and is_palindrome(i):
even_palindrome_count += 1
even_odd_palindrome = (even_palindrome_count, odd_palindrome_count) | is_palindrome | function |
n = 25
def is_palindrome(n):
even_odd_palindrome = str(n) == str(n)[::-1]
even_palindrome_count = 0
odd_palindrome_count = 0
for i in range(1, n+1):
if i%2 == 1 and is_palindrome(i):
odd_palindrome_count += 1
elif i%2 == 0 and is_palindrome(i):
even_palindrome_count += 1
even_odd_palindrome = (even_palindrome_count, odd_palindrome_count) | n | int |
n = 25
def is_palindrome(n):
even_odd_palindrome = str(n) == str(n)[::-1]
even_palindrome_count = 0
odd_palindrome_count = 0
for i in range(1, n+1):
if i%2 == 1 and is_palindrome(i):
odd_palindrome_count += 1
elif i%2 == 0 and is_palindrome(i):
even_palindrome_count += 1
even_odd_palindrome = (even_palindrome_count, odd_palindrome_count) | odd_palindrome_count | int |
arr = [3, 5, 4, 1, 2]
if len(arr)==0:
move_one_ball = True
sorted_array=sorted(arr)
my_arr=[]
min_value=min(arr)
min_index=arr.index(min_value)
my_arr=arr[min_index:]+arr[0:min_index]
for i in range(len(arr)):
if my_arr[i]!=sorted_array[i]:
move_one_ball = False | arr | list |
arr = [3, 5, 4, 1, 2]
if len(arr)==0:
move_one_ball = True
sorted_array=sorted(arr)
my_arr=[]
min_value=min(arr)
min_index=arr.index(min_value)
my_arr=arr[min_index:]+arr[0:min_index]
for i in range(len(arr)):
if my_arr[i]!=sorted_array[i]:
move_one_ball = False | i | int |
arr = [3, 5, 4, 1, 2]
if len(arr)==0:
move_one_ball = True
sorted_array=sorted(arr)
my_arr=[]
min_value=min(arr)
min_index=arr.index(min_value)
my_arr=arr[min_index:]+arr[0:min_index]
for i in range(len(arr)):
if my_arr[i]!=sorted_array[i]:
move_one_ball = False | min_index | int |
arr = [3, 5, 4, 1, 2]
if len(arr)==0:
move_one_ball = True
sorted_array=sorted(arr)
my_arr=[]
min_value=min(arr)
min_index=arr.index(min_value)
my_arr=arr[min_index:]+arr[0:min_index]
for i in range(len(arr)):
if my_arr[i]!=sorted_array[i]:
move_one_ball = False | min_value | int |
arr = [3, 5, 4, 1, 2]
if len(arr)==0:
move_one_ball = True
sorted_array=sorted(arr)
my_arr=[]
min_value=min(arr)
min_index=arr.index(min_value)
my_arr=arr[min_index:]+arr[0:min_index]
for i in range(len(arr)):
if my_arr[i]!=sorted_array[i]:
move_one_ball = False | move_one_ball | bool |
arr = [3, 5, 4, 1, 2]
if len(arr)==0:
move_one_ball = True
sorted_array=sorted(arr)
my_arr=[]
min_value=min(arr)
min_index=arr.index(min_value)
my_arr=arr[min_index:]+arr[0:min_index]
for i in range(len(arr)):
if my_arr[i]!=sorted_array[i]:
move_one_ball = False | my_arr | list |
arr = [3, 5, 4, 1, 2]
if len(arr)==0:
move_one_ball = True
sorted_array=sorted(arr)
my_arr=[]
min_value=min(arr)
min_index=arr.index(min_value)
my_arr=arr[min_index:]+arr[0:min_index]
for i in range(len(arr)):
if my_arr[i]!=sorted_array[i]:
move_one_ball = False | sorted_array | list |
arr = [3, 5, 4, 1, 2]
if len(arr)==0:
move_one_ball = True
sorted_array=sorted(arr)
my_arr=[] | arr | list |
arr = [3, 5, 4, 1, 2]
if len(arr)==0:
move_one_ball = True
sorted_array=sorted(arr)
my_arr=[] | my_arr | list |
arr = [3, 5, 4, 1, 2]
if len(arr)==0:
move_one_ball = True
sorted_array=sorted(arr)
my_arr=[] | sorted_array | list |
arr = [3, 5, 4, 1, 2]
if len(arr)==0:
move_one_ball = True
sorted_array=sorted(arr) | arr | list |
arr = [3, 5, 4, 1, 2]
if len(arr)==0:
move_one_ball = True
sorted_array=sorted(arr) | sorted_array | list |
lst1, lst2 = [1, 2, 3, 4], [1, 2, 3, 4]
odd = 0
even = 0
for i in lst1:
if i%2 == 1:
odd += 1
for i in lst2:
if i%2 == 0:
even += 1 | even | int |
lst1, lst2 = [1, 2, 3, 4], [1, 2, 3, 4]
odd = 0
even = 0
for i in lst1:
if i%2 == 1:
odd += 1
for i in lst2:
if i%2 == 0:
even += 1 | i | int |
lst1, lst2 = [1, 2, 3, 4], [1, 2, 3, 4]
odd = 0
even = 0
for i in lst1:
if i%2 == 1:
odd += 1
for i in lst2:
if i%2 == 0:
even += 1 | lst1 | list |
lst1, lst2 = [1, 2, 3, 4], [1, 2, 3, 4]
odd = 0
even = 0
for i in lst1:
if i%2 == 1:
odd += 1
for i in lst2:
if i%2 == 0:
even += 1 | lst2 | list |
lst1, lst2 = [1, 2, 3, 4], [1, 2, 3, 4]
odd = 0
even = 0
for i in lst1:
if i%2 == 1:
odd += 1
for i in lst2:
if i%2 == 0:
even += 1 | odd | int |
lst1, lst2 = [1, 2, 3, 4], [1, 2, 3, 4]
odd = 0
even = 0
for i in lst1: | even | int |
lst1, lst2 = [1, 2, 3, 4], [1, 2, 3, 4]
odd = 0
even = 0
for i in lst1: | i | int |
lst1, lst2 = [1, 2, 3, 4], [1, 2, 3, 4]
odd = 0
even = 0
for i in lst1: | lst1 | list |
lst1, lst2 = [1, 2, 3, 4], [1, 2, 3, 4]
odd = 0
even = 0
for i in lst1: | lst2 | list |
lst1, lst2 = [1, 2, 3, 4], [1, 2, 3, 4]
odd = 0
even = 0
for i in lst1: | odd | int |
lst1, lst2 = [1, 2, 3, 4], [1, 2, 3, 4]
odd = 0
even = 0
for i in lst1:
if i%2 == 1:
odd += 1
for i in lst2: | even | int |
lst1, lst2 = [1, 2, 3, 4], [1, 2, 3, 4]
odd = 0
even = 0
for i in lst1:
if i%2 == 1:
odd += 1
for i in lst2: | i | int |
lst1, lst2 = [1, 2, 3, 4], [1, 2, 3, 4]
odd = 0
even = 0
for i in lst1:
if i%2 == 1:
odd += 1
for i in lst2: | lst1 | list |
lst1, lst2 = [1, 2, 3, 4], [1, 2, 3, 4]
odd = 0
even = 0
for i in lst1:
if i%2 == 1:
odd += 1
for i in lst2: | lst2 | list |
lst1, lst2 = [1, 2, 3, 4], [1, 2, 3, 4]
odd = 0
even = 0
for i in lst1:
if i%2 == 1:
odd += 1
for i in lst2: | odd | int |
test = 'a b c d g'
dict1={}
list1=test.split(" ")
t=0
for i in list1:
if(list1.count(i)>t) and i!='':
t=list1.count(i)
if t>0:
for i in list1:
if(list1.count(i)==t):
dict1[i]=t
histogram = dict1 | dict1 | dict |
test = 'a b c d g'
dict1={}
list1=test.split(" ")
t=0
for i in list1:
if(list1.count(i)>t) and i!='':
t=list1.count(i)
if t>0:
for i in list1:
if(list1.count(i)==t):
dict1[i]=t
histogram = dict1 | histogram | dict |
test = 'a b c d g'
dict1={}
list1=test.split(" ")
t=0
for i in list1:
if(list1.count(i)>t) and i!='':
t=list1.count(i)
if t>0:
for i in list1:
if(list1.count(i)==t):
dict1[i]=t
histogram = dict1 | i | str |
test = 'a b c d g'
dict1={}
list1=test.split(" ")
t=0
for i in list1:
if(list1.count(i)>t) and i!='':
t=list1.count(i)
if t>0:
for i in list1:
if(list1.count(i)==t):
dict1[i]=t
histogram = dict1 | list1 | list |
test = 'a b c d g'
dict1={}
list1=test.split(" ")
t=0
for i in list1:
if(list1.count(i)>t) and i!='':
t=list1.count(i)
if t>0:
for i in list1:
if(list1.count(i)==t):
dict1[i]=t
histogram = dict1 | t | int |
test = 'a b c d g'
dict1={}
list1=test.split(" ")
t=0
for i in list1:
if(list1.count(i)>t) and i!='':
t=list1.count(i)
if t>0:
for i in list1:
if(list1.count(i)==t):
dict1[i]=t
histogram = dict1 | test | str |
test = 'a b c d g'
dict1={}
list1=test.split(" ")
t=0
for i in list1:
if(list1.count(i)>t) and i!='':
t=list1.count(i)
if t>0:
for i in list1:
if(list1.count(i)==t):
| dict1 | dict |
test = 'a b c d g'
dict1={}
list1=test.split(" ")
t=0
for i in list1:
if(list1.count(i)>t) and i!='':
t=list1.count(i)
if t>0:
for i in list1:
if(list1.count(i)==t):
| i | str |
test = 'a b c d g'
dict1={}
list1=test.split(" ")
t=0
for i in list1:
if(list1.count(i)>t) and i!='':
t=list1.count(i)
if t>0:
for i in list1:
if(list1.count(i)==t):
| list1 | list |
test = 'a b c d g'
dict1={}
list1=test.split(" ")
t=0
for i in list1:
if(list1.count(i)>t) and i!='':
t=list1.count(i)
if t>0:
for i in list1:
if(list1.count(i)==t):
| t | int |
test = 'a b c d g'
dict1={}
list1=test.split(" ")
t=0
for i in list1:
if(list1.count(i)>t) and i!='':
t=list1.count(i)
if t>0:
for i in list1:
if(list1.count(i)==t):
| test | str |
test = 'a b c d g'
dict1={}
list1=test.split(" ")
t=0
for i in list1:
if(list1.count(i)>t) and i!='':
t=list1.count(i)
if t>0:
for i in list1:
if(list1.count(i)==t): | dict1 | dict |
test = 'a b c d g'
dict1={}
list1=test.split(" ")
t=0
for i in list1:
if(list1.count(i)>t) and i!='':
t=list1.count(i)
if t>0:
for i in list1:
if(list1.count(i)==t): | i | str |
test = 'a b c d g'
dict1={}
list1=test.split(" ")
t=0
for i in list1:
if(list1.count(i)>t) and i!='':
t=list1.count(i)
if t>0:
for i in list1:
if(list1.count(i)==t): | list1 | list |
test = 'a b c d g'
dict1={}
list1=test.split(" ")
t=0
for i in list1:
if(list1.count(i)>t) and i!='':
t=list1.count(i)
if t>0:
for i in list1:
if(list1.count(i)==t): | t | int |
test = 'a b c d g'
dict1={}
list1=test.split(" ")
t=0
for i in list1:
if(list1.count(i)>t) and i!='':
t=list1.count(i)
if t>0:
for i in list1:
if(list1.count(i)==t): | test | str |
test = 'a b c d g'
dict1={} | dict1 | dict |
test = 'a b c d g'
dict1={} | test | str |
s, c = "mamma", "mia"
s = ''.join([char for char in s if char not in c])
reverse_delete = (s,s[::-1] == s) | c | str |
s, c = "mamma", "mia"
s = ''.join([char for char in s if char not in c])
reverse_delete = (s,s[::-1] == s) | reverse_delete | tuple |
s, c = "mamma", "mia"
s = ''.join([char for char in s if char not in c])
reverse_delete = (s,s[::-1] == s) | s | str |
s, c = "mamma", "mia"
s = ''.join([char for char in s if char not in c]) | c | str |
s, c = "mamma", "mia"
s = ''.join([char for char in s if char not in c]) | s | str |
lst = ['3',"11111111"]
res = []
for arr in lst:
n = sum(int(d)%2==1 for d in arr)
res.append("the number of odd elements " + str(n) + "n the str"+ str(n) +"ng "+ str(n) +" of the "+ str(n) +"nput.") | arr | str |
lst = ['3',"11111111"]
res = []
for arr in lst:
n = sum(int(d)%2==1 for d in arr)
res.append("the number of odd elements " + str(n) + "n the str"+ str(n) +"ng "+ str(n) +" of the "+ str(n) +"nput.") | lst | list |
lst = ['3',"11111111"]
res = []
for arr in lst:
n = sum(int(d)%2==1 for d in arr)
res.append("the number of odd elements " + str(n) + "n the str"+ str(n) +"ng "+ str(n) +" of the "+ str(n) +"nput.") | n | int |
lst = ['3',"11111111"]
res = []
for arr in lst:
n = sum(int(d)%2==1 for d in arr)
res.append("the number of odd elements " + str(n) + "n the str"+ str(n) +"ng "+ str(n) +" of the "+ str(n) +"nput.") | res | list |
lst = ['3',"11111111"]
res = []
for arr in lst:
n = sum(int(d)%2==1 for d in arr)
res.append("the number of odd elements " + str(n) + "n the str"+ str(n) +"ng "+ str(n) +" of the "+ str(n) +"nput.")
odd_count = res | arr | str |
lst = ['3',"11111111"]
res = []
for arr in lst:
n = sum(int(d)%2==1 for d in arr)
res.append("the number of odd elements " + str(n) + "n the str"+ str(n) +"ng "+ str(n) +" of the "+ str(n) +"nput.")
odd_count = res | lst | list |