code_prefix
stringlengths
14
533
full_code
stringclasses
167 values
varname
stringlengths
1
25
vartype
stringclasses
13 values
n = 4 fact_i = 1 special_fact = 1 for i in range(1, n+1):
n = 4 fact_i = 1 special_fact = 1 for i in range(1, n+1): fact_i *= i special_fact *= fact_i special_factorial = special_fact
fact_i
int
n = 4 fact_i = 1 special_fact = 1 for i in range(1, n+1):
n = 4 fact_i = 1 special_fact = 1 for i in range(1, n+1): fact_i *= i special_fact *= fact_i special_factorial = special_fact
i
int
n = 4 fact_i = 1 special_fact = 1 for i in range(1, n+1):
n = 4 fact_i = 1 special_fact = 1 for i in range(1, n+1): fact_i *= i special_fact *= fact_i special_factorial = special_fact
n
int
n = 4 fact_i = 1 special_fact = 1 for i in range(1, n+1):
n = 4 fact_i = 1 special_fact = 1 for i in range(1, n+1): fact_i *= i special_fact *= fact_i special_factorial = special_fact
special_fact
int
n = 4 fact_i = 1 special_fact = 1 for i in range(1, n+1): fact_i *= i special_fact *= fact_i
n = 4 fact_i = 1 special_fact = 1 for i in range(1, n+1): fact_i *= i special_fact *= fact_i special_factorial = special_fact
fact_i
int
n = 4 fact_i = 1 special_fact = 1 for i in range(1, n+1): fact_i *= i special_fact *= fact_i
n = 4 fact_i = 1 special_fact = 1 for i in range(1, n+1): fact_i *= i special_fact *= fact_i special_factorial = special_fact
i
int
n = 4 fact_i = 1 special_fact = 1 for i in range(1, n+1): fact_i *= i special_fact *= fact_i
n = 4 fact_i = 1 special_fact = 1 for i in range(1, n+1): fact_i *= i special_fact *= fact_i special_factorial = special_fact
n
int
n = 4 fact_i = 1 special_fact = 1 for i in range(1, n+1): fact_i *= i special_fact *= fact_i
n = 4 fact_i = 1 special_fact = 1 for i in range(1, n+1): fact_i *= i special_fact *= fact_i special_factorial = special_fact
special_fact
int
n = 4 fact_i = 1 special_fact = 1
n = 4 fact_i = 1 special_fact = 1 for i in range(1, n+1): fact_i *= i special_fact *= fact_i special_factorial = special_fact
fact_i
int
n = 4 fact_i = 1 special_fact = 1
n = 4 fact_i = 1 special_fact = 1 for i in range(1, n+1): fact_i *= i special_fact *= fact_i special_factorial = special_fact
n
int
n = 4 fact_i = 1 special_fact = 1
n = 4 fact_i = 1 special_fact = 1 for i in range(1, n+1): fact_i *= i special_fact *= fact_i special_factorial = special_fact
special_fact
int
text = "Exa mple" new_text = "" i = 0 start, end = 0, 0 while i < len(text): if text[i] == " ": end += 1 else:
text = "Exa mple" new_text = "" i = 0 start, end = 0, 0 while i < len(text): if text[i] == " ": end += 1 else: if end - start > 2: new_text += "-"+text[i] elif end - start > 0: new_text += "_"*(end - start)+text[i] else: new_text += text[i] start, end = i+1, i+1 i+=1 if end - start > 2: new_text += "-" elif end - start > 0: new_text += "_" fix_spaces = new_text
end
int
text = "Exa mple" new_text = "" i = 0 start, end = 0, 0 while i < len(text): if text[i] == " ": end += 1 else:
text = "Exa mple" new_text = "" i = 0 start, end = 0, 0 while i < len(text): if text[i] == " ": end += 1 else: if end - start > 2: new_text += "-"+text[i] elif end - start > 0: new_text += "_"*(end - start)+text[i] else: new_text += text[i] start, end = i+1, i+1 i+=1 if end - start > 2: new_text += "-" elif end - start > 0: new_text += "_" fix_spaces = new_text
i
int
text = "Exa mple" new_text = "" i = 0 start, end = 0, 0 while i < len(text): if text[i] == " ": end += 1 else:
text = "Exa mple" new_text = "" i = 0 start, end = 0, 0 while i < len(text): if text[i] == " ": end += 1 else: if end - start > 2: new_text += "-"+text[i] elif end - start > 0: new_text += "_"*(end - start)+text[i] else: new_text += text[i] start, end = i+1, i+1 i+=1 if end - start > 2: new_text += "-" elif end - start > 0: new_text += "_" fix_spaces = new_text
new_text
str
text = "Exa mple" new_text = "" i = 0 start, end = 0, 0 while i < len(text): if text[i] == " ": end += 1 else:
text = "Exa mple" new_text = "" i = 0 start, end = 0, 0 while i < len(text): if text[i] == " ": end += 1 else: if end - start > 2: new_text += "-"+text[i] elif end - start > 0: new_text += "_"*(end - start)+text[i] else: new_text += text[i] start, end = i+1, i+1 i+=1 if end - start > 2: new_text += "-" elif end - start > 0: new_text += "_" fix_spaces = new_text
start
int
text = "Exa mple" new_text = "" i = 0 start, end = 0, 0 while i < len(text): if text[i] == " ": end += 1 else:
text = "Exa mple" new_text = "" i = 0 start, end = 0, 0 while i < len(text): if text[i] == " ": end += 1 else: if end - start > 2: new_text += "-"+text[i] elif end - start > 0: new_text += "_"*(end - start)+text[i] else: new_text += text[i] start, end = i+1, i+1 i+=1 if end - start > 2: new_text += "-" elif end - start > 0: new_text += "_" fix_spaces = new_text
text
str
text = "Exa mple" new_text = "" i = 0 start, end = 0, 0 while i < len(text): if text[i] == " ": end += 1 else: if end - start > 2: new_text += "-"+text[i] elif end - start > 0: new_text += "_"*(end - start)+text[i] else: new_text += text[i] start, end = i+1, i+1
text = "Exa mple" new_text = "" i = 0 start, end = 0, 0 while i < len(text): if text[i] == " ": end += 1 else: if end - start > 2: new_text += "-"+text[i] elif end - start > 0: new_text += "_"*(end - start)+text[i] else: new_text += text[i] start, end = i+1, i+1 i+=1 if end - start > 2: new_text += "-" elif end - start > 0: new_text += "_" fix_spaces = new_text
end
int
text = "Exa mple" new_text = "" i = 0 start, end = 0, 0 while i < len(text): if text[i] == " ": end += 1 else: if end - start > 2: new_text += "-"+text[i] elif end - start > 0: new_text += "_"*(end - start)+text[i] else: new_text += text[i] start, end = i+1, i+1
text = "Exa mple" new_text = "" i = 0 start, end = 0, 0 while i < len(text): if text[i] == " ": end += 1 else: if end - start > 2: new_text += "-"+text[i] elif end - start > 0: new_text += "_"*(end - start)+text[i] else: new_text += text[i] start, end = i+1, i+1 i+=1 if end - start > 2: new_text += "-" elif end - start > 0: new_text += "_" fix_spaces = new_text
i
int
text = "Exa mple" new_text = "" i = 0 start, end = 0, 0 while i < len(text): if text[i] == " ": end += 1 else: if end - start > 2: new_text += "-"+text[i] elif end - start > 0: new_text += "_"*(end - start)+text[i] else: new_text += text[i] start, end = i+1, i+1
text = "Exa mple" new_text = "" i = 0 start, end = 0, 0 while i < len(text): if text[i] == " ": end += 1 else: if end - start > 2: new_text += "-"+text[i] elif end - start > 0: new_text += "_"*(end - start)+text[i] else: new_text += text[i] start, end = i+1, i+1 i+=1 if end - start > 2: new_text += "-" elif end - start > 0: new_text += "_" fix_spaces = new_text
new_text
str
text = "Exa mple" new_text = "" i = 0 start, end = 0, 0 while i < len(text): if text[i] == " ": end += 1 else: if end - start > 2: new_text += "-"+text[i] elif end - start > 0: new_text += "_"*(end - start)+text[i] else: new_text += text[i] start, end = i+1, i+1
text = "Exa mple" new_text = "" i = 0 start, end = 0, 0 while i < len(text): if text[i] == " ": end += 1 else: if end - start > 2: new_text += "-"+text[i] elif end - start > 0: new_text += "_"*(end - start)+text[i] else: new_text += text[i] start, end = i+1, i+1 i+=1 if end - start > 2: new_text += "-" elif end - start > 0: new_text += "_" fix_spaces = new_text
start
int
text = "Exa mple" new_text = "" i = 0 start, end = 0, 0 while i < len(text): if text[i] == " ": end += 1 else: if end - start > 2: new_text += "-"+text[i] elif end - start > 0: new_text += "_"*(end - start)+text[i] else: new_text += text[i] start, end = i+1, i+1
text = "Exa mple" new_text = "" i = 0 start, end = 0, 0 while i < len(text): if text[i] == " ": end += 1 else: if end - start > 2: new_text += "-"+text[i] elif end - start > 0: new_text += "_"*(end - start)+text[i] else: new_text += text[i] start, end = i+1, i+1 i+=1 if end - start > 2: new_text += "-" elif end - start > 0: new_text += "_" fix_spaces = new_text
text
str
file_name = 'K.dll' suf = ['txt', 'exe', 'dll'] lst = file_name.split(sep='.') if len(lst) != 2: file_name_check = 'No' if not lst[1] in suf: file_name_check = 'No' if len(lst[0]) == 0: file_name_check = 'No' if not lst[0][0].isalpha(): file_name_check = 'No' t = len([x for x in lst[0] if x.isdigit()])
file_name = 'K.dll' suf = ['txt', 'exe', 'dll'] lst = file_name.split(sep='.') if len(lst) != 2: file_name_check = 'No' if not lst[1] in suf: file_name_check = 'No' if len(lst[0]) == 0: file_name_check = 'No' if not lst[0][0].isalpha(): file_name_check = 'No' t = len([x for x in lst[0] if x.isdigit()]) if t > 3: file_name_check = 'No' file_name_check = 'Yes'
file_name
str
file_name = 'K.dll' suf = ['txt', 'exe', 'dll'] lst = file_name.split(sep='.') if len(lst) != 2: file_name_check = 'No' if not lst[1] in suf: file_name_check = 'No' if len(lst[0]) == 0: file_name_check = 'No' if not lst[0][0].isalpha(): file_name_check = 'No' t = len([x for x in lst[0] if x.isdigit()])
file_name = 'K.dll' suf = ['txt', 'exe', 'dll'] lst = file_name.split(sep='.') if len(lst) != 2: file_name_check = 'No' if not lst[1] in suf: file_name_check = 'No' if len(lst[0]) == 0: file_name_check = 'No' if not lst[0][0].isalpha(): file_name_check = 'No' t = len([x for x in lst[0] if x.isdigit()]) if t > 3: file_name_check = 'No' file_name_check = 'Yes'
lst
list
file_name = 'K.dll' suf = ['txt', 'exe', 'dll'] lst = file_name.split(sep='.') if len(lst) != 2: file_name_check = 'No' if not lst[1] in suf: file_name_check = 'No' if len(lst[0]) == 0: file_name_check = 'No' if not lst[0][0].isalpha(): file_name_check = 'No' t = len([x for x in lst[0] if x.isdigit()])
file_name = 'K.dll' suf = ['txt', 'exe', 'dll'] lst = file_name.split(sep='.') if len(lst) != 2: file_name_check = 'No' if not lst[1] in suf: file_name_check = 'No' if len(lst[0]) == 0: file_name_check = 'No' if not lst[0][0].isalpha(): file_name_check = 'No' t = len([x for x in lst[0] if x.isdigit()]) if t > 3: file_name_check = 'No' file_name_check = 'Yes'
suf
list
file_name = 'K.dll' suf = ['txt', 'exe', 'dll'] lst = file_name.split(sep='.') if len(lst) != 2: file_name_check = 'No' if not lst[1] in suf: file_name_check = 'No' if len(lst[0]) == 0: file_name_check = 'No' if not lst[0][0].isalpha(): file_name_check = 'No' t = len([x for x in lst[0] if x.isdigit()])
file_name = 'K.dll' suf = ['txt', 'exe', 'dll'] lst = file_name.split(sep='.') if len(lst) != 2: file_name_check = 'No' if not lst[1] in suf: file_name_check = 'No' if len(lst[0]) == 0: file_name_check = 'No' if not lst[0][0].isalpha(): file_name_check = 'No' t = len([x for x in lst[0] if x.isdigit()]) if t > 3: file_name_check = 'No' file_name_check = 'Yes'
t
int
lst = [-56,-99,1,0,-2] result =[] for i in range(len(lst)): if i %3 == 0: result.append(lst[i]**2) elif i % 4 == 0 and i%3 != 0: result.append(lst[i]**3) else:
lst = [-56,-99,1,0,-2] result =[] for i in range(len(lst)): if i %3 == 0: result.append(lst[i]**2) elif i % 4 == 0 and i%3 != 0: result.append(lst[i]**3) else: result.append(lst[i]) sum_squares = sum(result)
i
int
lst = [-56,-99,1,0,-2] result =[] for i in range(len(lst)): if i %3 == 0: result.append(lst[i]**2) elif i % 4 == 0 and i%3 != 0: result.append(lst[i]**3) else:
lst = [-56,-99,1,0,-2] result =[] for i in range(len(lst)): if i %3 == 0: result.append(lst[i]**2) elif i % 4 == 0 and i%3 != 0: result.append(lst[i]**3) else: result.append(lst[i]) sum_squares = sum(result)
lst
list
lst = [-56,-99,1,0,-2] result =[] for i in range(len(lst)): if i %3 == 0: result.append(lst[i]**2) elif i % 4 == 0 and i%3 != 0: result.append(lst[i]**3) else:
lst = [-56,-99,1,0,-2] result =[] for i in range(len(lst)): if i %3 == 0: result.append(lst[i]**2) elif i % 4 == 0 and i%3 != 0: result.append(lst[i]**3) else: result.append(lst[i]) sum_squares = sum(result)
result
list
lst = [-56,-99,1,0,-2] result =[] for i in range(len(lst)): if i %3 == 0: result.append(lst[i]**2) elif i % 4 == 0 and i%3 != 0: result.append(lst[i]**3) else: result.append(lst[i]) sum_squares = sum(result)
lst = [-56,-99,1,0,-2] result =[] for i in range(len(lst)): if i %3 == 0: result.append(lst[i]**2) elif i % 4 == 0 and i%3 != 0: result.append(lst[i]**3) else: result.append(lst[i]) sum_squares = sum(result)
i
int
lst = [-56,-99,1,0,-2] result =[] for i in range(len(lst)): if i %3 == 0: result.append(lst[i]**2) elif i % 4 == 0 and i%3 != 0: result.append(lst[i]**3) else: result.append(lst[i]) sum_squares = sum(result)
lst = [-56,-99,1,0,-2] result =[] for i in range(len(lst)): if i %3 == 0: result.append(lst[i]**2) elif i % 4 == 0 and i%3 != 0: result.append(lst[i]**3) else: result.append(lst[i]) sum_squares = sum(result)
lst
list
lst = [-56,-99,1,0,-2] result =[] for i in range(len(lst)): if i %3 == 0: result.append(lst[i]**2) elif i % 4 == 0 and i%3 != 0: result.append(lst[i]**3) else: result.append(lst[i]) sum_squares = sum(result)
lst = [-56,-99,1,0,-2] result =[] for i in range(len(lst)): if i %3 == 0: result.append(lst[i]**2) elif i % 4 == 0 and i%3 != 0: result.append(lst[i]**3) else: result.append(lst[i]) sum_squares = sum(result)
result
list
lst = [-56,-99,1,0,-2] result =[] for i in range(len(lst)): if i %3 == 0: result.append(lst[i]**2) elif i % 4 == 0 and i%3 != 0: result.append(lst[i]**3) else: result.append(lst[i]) sum_squares = sum(result)
lst = [-56,-99,1,0,-2] result =[] for i in range(len(lst)): if i %3 == 0: result.append(lst[i]**2) elif i % 4 == 0 and i%3 != 0: result.append(lst[i]**3) else: result.append(lst[i]) sum_squares = sum(result)
sum_squares
int
lst = [-56,-99,1,0,-2] result =[] for i in range(len(lst)): if i %3 == 0: result.append(lst[i]**2) elif i % 4 == 0 and i%3 != 0: result.append(lst[i]**3)
lst = [-56,-99,1,0,-2] result =[] for i in range(len(lst)): if i %3 == 0: result.append(lst[i]**2) elif i % 4 == 0 and i%3 != 0: result.append(lst[i]**3) else: result.append(lst[i]) sum_squares = sum(result)
i
int
lst = [-56,-99,1,0,-2] result =[] for i in range(len(lst)): if i %3 == 0: result.append(lst[i]**2) elif i % 4 == 0 and i%3 != 0: result.append(lst[i]**3)
lst = [-56,-99,1,0,-2] result =[] for i in range(len(lst)): if i %3 == 0: result.append(lst[i]**2) elif i % 4 == 0 and i%3 != 0: result.append(lst[i]**3) else: result.append(lst[i]) sum_squares = sum(result)
lst
list
lst = [-56,-99,1,0,-2] result =[] for i in range(len(lst)): if i %3 == 0: result.append(lst[i]**2) elif i % 4 == 0 and i%3 != 0: result.append(lst[i]**3)
lst = [-56,-99,1,0,-2] result =[] for i in range(len(lst)): if i %3 == 0: result.append(lst[i]**2) elif i % 4 == 0 and i%3 != 0: result.append(lst[i]**3) else: result.append(lst[i]) sum_squares = sum(result)
result
list
lst = [-56,-99,1,0,-2] result =[] for i in range(len(lst)): if i %3 == 0: result.append(lst[i]**2)
lst = [-56,-99,1,0,-2] result =[] for i in range(len(lst)): if i %3 == 0: result.append(lst[i]**2) elif i % 4 == 0 and i%3 != 0: result.append(lst[i]**3) else: result.append(lst[i]) sum_squares = sum(result)
i
int
lst = [-56,-99,1,0,-2] result =[] for i in range(len(lst)): if i %3 == 0: result.append(lst[i]**2)
lst = [-56,-99,1,0,-2] result =[] for i in range(len(lst)): if i %3 == 0: result.append(lst[i]**2) elif i % 4 == 0 and i%3 != 0: result.append(lst[i]**3) else: result.append(lst[i]) sum_squares = sum(result)
lst
list
lst = [-56,-99,1,0,-2] result =[] for i in range(len(lst)): if i %3 == 0: result.append(lst[i]**2)
lst = [-56,-99,1,0,-2] result =[] for i in range(len(lst)): if i %3 == 0: result.append(lst[i]**2) elif i % 4 == 0 and i%3 != 0: result.append(lst[i]**3) else: result.append(lst[i]) sum_squares = sum(result)
result
list
sentence = "lets go for swimming" new_lst = [] for word in sentence.split(): flg = 0 if len(word) == 1: flg = 1 for i in range(2, len(word)): if len(word)%i == 0: flg = 1 if flg == 0 or len(word) == 2:
sentence = "lets go for swimming" new_lst = [] for word in sentence.split(): flg = 0 if len(word) == 1: flg = 1 for i in range(2, len(word)): if len(word)%i == 0: flg = 1 if flg == 0 or len(word) == 2: new_lst.append(word) words_in_sentence = " ".join(new_lst)
flg
int
sentence = "lets go for swimming" new_lst = [] for word in sentence.split(): flg = 0 if len(word) == 1: flg = 1 for i in range(2, len(word)): if len(word)%i == 0: flg = 1 if flg == 0 or len(word) == 2:
sentence = "lets go for swimming" new_lst = [] for word in sentence.split(): flg = 0 if len(word) == 1: flg = 1 for i in range(2, len(word)): if len(word)%i == 0: flg = 1 if flg == 0 or len(word) == 2: new_lst.append(word) words_in_sentence = " ".join(new_lst)
i
int
sentence = "lets go for swimming" new_lst = [] for word in sentence.split(): flg = 0 if len(word) == 1: flg = 1 for i in range(2, len(word)): if len(word)%i == 0: flg = 1 if flg == 0 or len(word) == 2:
sentence = "lets go for swimming" new_lst = [] for word in sentence.split(): flg = 0 if len(word) == 1: flg = 1 for i in range(2, len(word)): if len(word)%i == 0: flg = 1 if flg == 0 or len(word) == 2: new_lst.append(word) words_in_sentence = " ".join(new_lst)
new_lst
list
sentence = "lets go for swimming" new_lst = [] for word in sentence.split(): flg = 0 if len(word) == 1: flg = 1 for i in range(2, len(word)): if len(word)%i == 0: flg = 1 if flg == 0 or len(word) == 2:
sentence = "lets go for swimming" new_lst = [] for word in sentence.split(): flg = 0 if len(word) == 1: flg = 1 for i in range(2, len(word)): if len(word)%i == 0: flg = 1 if flg == 0 or len(word) == 2: new_lst.append(word) words_in_sentence = " ".join(new_lst)
sentence
str
sentence = "lets go for swimming" new_lst = [] for word in sentence.split(): flg = 0 if len(word) == 1: flg = 1 for i in range(2, len(word)): if len(word)%i == 0: flg = 1 if flg == 0 or len(word) == 2:
sentence = "lets go for swimming" new_lst = [] for word in sentence.split(): flg = 0 if len(word) == 1: flg = 1 for i in range(2, len(word)): if len(word)%i == 0: flg = 1 if flg == 0 or len(word) == 2: new_lst.append(word) words_in_sentence = " ".join(new_lst)
word
str
sentence = "lets go for swimming" new_lst = [] for word in sentence.split(): flg = 0 if len(word) == 1: flg = 1 for i in range(2, len(word)): if len(word)%i == 0: flg = 1 if flg == 0 or len(word) == 2: new_lst.append(word)
sentence = "lets go for swimming" new_lst = [] for word in sentence.split(): flg = 0 if len(word) == 1: flg = 1 for i in range(2, len(word)): if len(word)%i == 0: flg = 1 if flg == 0 or len(word) == 2: new_lst.append(word) words_in_sentence = " ".join(new_lst)
flg
int
sentence = "lets go for swimming" new_lst = [] for word in sentence.split(): flg = 0 if len(word) == 1: flg = 1 for i in range(2, len(word)): if len(word)%i == 0: flg = 1 if flg == 0 or len(word) == 2: new_lst.append(word)
sentence = "lets go for swimming" new_lst = [] for word in sentence.split(): flg = 0 if len(word) == 1: flg = 1 for i in range(2, len(word)): if len(word)%i == 0: flg = 1 if flg == 0 or len(word) == 2: new_lst.append(word) words_in_sentence = " ".join(new_lst)
i
int
sentence = "lets go for swimming" new_lst = [] for word in sentence.split(): flg = 0 if len(word) == 1: flg = 1 for i in range(2, len(word)): if len(word)%i == 0: flg = 1 if flg == 0 or len(word) == 2: new_lst.append(word)
sentence = "lets go for swimming" new_lst = [] for word in sentence.split(): flg = 0 if len(word) == 1: flg = 1 for i in range(2, len(word)): if len(word)%i == 0: flg = 1 if flg == 0 or len(word) == 2: new_lst.append(word) words_in_sentence = " ".join(new_lst)
new_lst
list
sentence = "lets go for swimming" new_lst = [] for word in sentence.split(): flg = 0 if len(word) == 1: flg = 1 for i in range(2, len(word)): if len(word)%i == 0: flg = 1 if flg == 0 or len(word) == 2: new_lst.append(word)
sentence = "lets go for swimming" new_lst = [] for word in sentence.split(): flg = 0 if len(word) == 1: flg = 1 for i in range(2, len(word)): if len(word)%i == 0: flg = 1 if flg == 0 or len(word) == 2: new_lst.append(word) words_in_sentence = " ".join(new_lst)
sentence
str
sentence = "lets go for swimming" new_lst = [] for word in sentence.split(): flg = 0 if len(word) == 1: flg = 1 for i in range(2, len(word)): if len(word)%i == 0: flg = 1 if flg == 0 or len(word) == 2: new_lst.append(word)
sentence = "lets go for swimming" new_lst = [] for word in sentence.split(): flg = 0 if len(word) == 1: flg = 1 for i in range(2, len(word)): if len(word)%i == 0: flg = 1 if flg == 0 or len(word) == 2: new_lst.append(word) words_in_sentence = " ".join(new_lst)
word
str
sentence = "lets go for swimming" new_lst = [] for word in sentence.split(): flg = 0 if len(word) == 1: flg = 1 for i in range(2, len(word)):
sentence = "lets go for swimming" new_lst = [] for word in sentence.split(): flg = 0 if len(word) == 1: flg = 1 for i in range(2, len(word)): if len(word)%i == 0: flg = 1 if flg == 0 or len(word) == 2: new_lst.append(word) words_in_sentence = " ".join(new_lst)
flg
int
sentence = "lets go for swimming" new_lst = [] for word in sentence.split(): flg = 0 if len(word) == 1: flg = 1 for i in range(2, len(word)):
sentence = "lets go for swimming" new_lst = [] for word in sentence.split(): flg = 0 if len(word) == 1: flg = 1 for i in range(2, len(word)): if len(word)%i == 0: flg = 1 if flg == 0 or len(word) == 2: new_lst.append(word) words_in_sentence = " ".join(new_lst)
i
int
sentence = "lets go for swimming" new_lst = [] for word in sentence.split(): flg = 0 if len(word) == 1: flg = 1 for i in range(2, len(word)):
sentence = "lets go for swimming" new_lst = [] for word in sentence.split(): flg = 0 if len(word) == 1: flg = 1 for i in range(2, len(word)): if len(word)%i == 0: flg = 1 if flg == 0 or len(word) == 2: new_lst.append(word) words_in_sentence = " ".join(new_lst)
new_lst
list
sentence = "lets go for swimming" new_lst = [] for word in sentence.split(): flg = 0 if len(word) == 1: flg = 1 for i in range(2, len(word)):
sentence = "lets go for swimming" new_lst = [] for word in sentence.split(): flg = 0 if len(word) == 1: flg = 1 for i in range(2, len(word)): if len(word)%i == 0: flg = 1 if flg == 0 or len(word) == 2: new_lst.append(word) words_in_sentence = " ".join(new_lst)
sentence
str
sentence = "lets go for swimming" new_lst = [] for word in sentence.split(): flg = 0 if len(word) == 1: flg = 1 for i in range(2, len(word)):
sentence = "lets go for swimming" new_lst = [] for word in sentence.split(): flg = 0 if len(word) == 1: flg = 1 for i in range(2, len(word)): if len(word)%i == 0: flg = 1 if flg == 0 or len(word) == 2: new_lst.append(word) words_in_sentence = " ".join(new_lst)
word
str
sentence = "lets go for swimming" new_lst = [] for word in sentence.split(): flg = 0
sentence = "lets go for swimming" new_lst = [] for word in sentence.split(): flg = 0 if len(word) == 1: flg = 1 for i in range(2, len(word)): if len(word)%i == 0: flg = 1 if flg == 0 or len(word) == 2: new_lst.append(word) words_in_sentence = " ".join(new_lst)
flg
int
sentence = "lets go for swimming" new_lst = [] for word in sentence.split(): flg = 0
sentence = "lets go for swimming" new_lst = [] for word in sentence.split(): flg = 0 if len(word) == 1: flg = 1 for i in range(2, len(word)): if len(word)%i == 0: flg = 1 if flg == 0 or len(word) == 2: new_lst.append(word) words_in_sentence = " ".join(new_lst)
new_lst
list
sentence = "lets go for swimming" new_lst = [] for word in sentence.split(): flg = 0
sentence = "lets go for swimming" new_lst = [] for word in sentence.split(): flg = 0 if len(word) == 1: flg = 1 for i in range(2, len(word)): if len(word)%i == 0: flg = 1 if flg == 0 or len(word) == 2: new_lst.append(word) words_in_sentence = " ".join(new_lst)
sentence
str
sentence = "lets go for swimming" new_lst = [] for word in sentence.split(): flg = 0
sentence = "lets go for swimming" new_lst = [] for word in sentence.split(): flg = 0 if len(word) == 1: flg = 1 for i in range(2, len(word)): if len(word)%i == 0: flg = 1 if flg == 0 or len(word) == 2: new_lst.append(word) words_in_sentence = " ".join(new_lst)
word
str
x, n = "1/5", "1/5" a, b = x.split("/") c, d = n.split("/") numerator = int(a) * int(c)
x, n = "1/5", "1/5" a, b = x.split("/") c, d = n.split("/") numerator = int(a) * int(c) denom = int(b) * int(d) if (numerator/denom == int(numerator/denom)): simplify = True simplify = False
a
str
x, n = "1/5", "1/5" a, b = x.split("/") c, d = n.split("/") numerator = int(a) * int(c)
x, n = "1/5", "1/5" a, b = x.split("/") c, d = n.split("/") numerator = int(a) * int(c) denom = int(b) * int(d) if (numerator/denom == int(numerator/denom)): simplify = True simplify = False
b
str
x, n = "1/5", "1/5" a, b = x.split("/") c, d = n.split("/") numerator = int(a) * int(c)
x, n = "1/5", "1/5" a, b = x.split("/") c, d = n.split("/") numerator = int(a) * int(c) denom = int(b) * int(d) if (numerator/denom == int(numerator/denom)): simplify = True simplify = False
c
str
x, n = "1/5", "1/5" a, b = x.split("/") c, d = n.split("/") numerator = int(a) * int(c)
x, n = "1/5", "1/5" a, b = x.split("/") c, d = n.split("/") numerator = int(a) * int(c) denom = int(b) * int(d) if (numerator/denom == int(numerator/denom)): simplify = True simplify = False
d
str
x, n = "1/5", "1/5" a, b = x.split("/") c, d = n.split("/") numerator = int(a) * int(c)
x, n = "1/5", "1/5" a, b = x.split("/") c, d = n.split("/") numerator = int(a) * int(c) denom = int(b) * int(d) if (numerator/denom == int(numerator/denom)): simplify = True simplify = False
n
str
x, n = "1/5", "1/5" a, b = x.split("/") c, d = n.split("/") numerator = int(a) * int(c)
x, n = "1/5", "1/5" a, b = x.split("/") c, d = n.split("/") numerator = int(a) * int(c) denom = int(b) * int(d) if (numerator/denom == int(numerator/denom)): simplify = True simplify = False
numerator
int
x, n = "1/5", "1/5" a, b = x.split("/") c, d = n.split("/") numerator = int(a) * int(c)
x, n = "1/5", "1/5" a, b = x.split("/") c, d = n.split("/") numerator = int(a) * int(c) denom = int(b) * int(d) if (numerator/denom == int(numerator/denom)): simplify = True simplify = False
x
str
x, n = "1/5", "1/5" a, b = x.split("/") c, d = n.split("/")
x, n = "1/5", "1/5" a, b = x.split("/") c, d = n.split("/") numerator = int(a) * int(c) denom = int(b) * int(d) if (numerator/denom == int(numerator/denom)): simplify = True simplify = False
a
str
x, n = "1/5", "1/5" a, b = x.split("/") c, d = n.split("/")
x, n = "1/5", "1/5" a, b = x.split("/") c, d = n.split("/") numerator = int(a) * int(c) denom = int(b) * int(d) if (numerator/denom == int(numerator/denom)): simplify = True simplify = False
b
str
x, n = "1/5", "1/5" a, b = x.split("/") c, d = n.split("/")
x, n = "1/5", "1/5" a, b = x.split("/") c, d = n.split("/") numerator = int(a) * int(c) denom = int(b) * int(d) if (numerator/denom == int(numerator/denom)): simplify = True simplify = False
c
str
x, n = "1/5", "1/5" a, b = x.split("/") c, d = n.split("/")
x, n = "1/5", "1/5" a, b = x.split("/") c, d = n.split("/") numerator = int(a) * int(c) denom = int(b) * int(d) if (numerator/denom == int(numerator/denom)): simplify = True simplify = False
d
str
x, n = "1/5", "1/5" a, b = x.split("/") c, d = n.split("/")
x, n = "1/5", "1/5" a, b = x.split("/") c, d = n.split("/") numerator = int(a) * int(c) denom = int(b) * int(d) if (numerator/denom == int(numerator/denom)): simplify = True simplify = False
n
str
x, n = "1/5", "1/5" a, b = x.split("/") c, d = n.split("/")
x, n = "1/5", "1/5" a, b = x.split("/") c, d = n.split("/") numerator = int(a) * int(c) denom = int(b) * int(d) if (numerator/denom == int(numerator/denom)): simplify = True simplify = False
x
str
x, n = "1/5", "1/5" a, b = x.split("/") c, d = n.split("/") numerator = int(a) * int(c) denom = int(b) * int(d)
x, n = "1/5", "1/5" a, b = x.split("/") c, d = n.split("/") numerator = int(a) * int(c) denom = int(b) * int(d) if (numerator/denom == int(numerator/denom)): simplify = True simplify = False
a
str
x, n = "1/5", "1/5" a, b = x.split("/") c, d = n.split("/") numerator = int(a) * int(c) denom = int(b) * int(d)
x, n = "1/5", "1/5" a, b = x.split("/") c, d = n.split("/") numerator = int(a) * int(c) denom = int(b) * int(d) if (numerator/denom == int(numerator/denom)): simplify = True simplify = False
b
str
x, n = "1/5", "1/5" a, b = x.split("/") c, d = n.split("/") numerator = int(a) * int(c) denom = int(b) * int(d)
x, n = "1/5", "1/5" a, b = x.split("/") c, d = n.split("/") numerator = int(a) * int(c) denom = int(b) * int(d) if (numerator/denom == int(numerator/denom)): simplify = True simplify = False
c
str
x, n = "1/5", "1/5" a, b = x.split("/") c, d = n.split("/") numerator = int(a) * int(c) denom = int(b) * int(d)
x, n = "1/5", "1/5" a, b = x.split("/") c, d = n.split("/") numerator = int(a) * int(c) denom = int(b) * int(d) if (numerator/denom == int(numerator/denom)): simplify = True simplify = False
d
str
x, n = "1/5", "1/5" a, b = x.split("/") c, d = n.split("/") numerator = int(a) * int(c) denom = int(b) * int(d)
x, n = "1/5", "1/5" a, b = x.split("/") c, d = n.split("/") numerator = int(a) * int(c) denom = int(b) * int(d) if (numerator/denom == int(numerator/denom)): simplify = True simplify = False
denom
int
x, n = "1/5", "1/5" a, b = x.split("/") c, d = n.split("/") numerator = int(a) * int(c) denom = int(b) * int(d)
x, n = "1/5", "1/5" a, b = x.split("/") c, d = n.split("/") numerator = int(a) * int(c) denom = int(b) * int(d) if (numerator/denom == int(numerator/denom)): simplify = True simplify = False
n
str
x, n = "1/5", "1/5" a, b = x.split("/") c, d = n.split("/") numerator = int(a) * int(c) denom = int(b) * int(d)
x, n = "1/5", "1/5" a, b = x.split("/") c, d = n.split("/") numerator = int(a) * int(c) denom = int(b) * int(d) if (numerator/denom == int(numerator/denom)): simplify = True simplify = False
numerator
int
x, n = "1/5", "1/5" a, b = x.split("/") c, d = n.split("/") numerator = int(a) * int(c) denom = int(b) * int(d)
x, n = "1/5", "1/5" a, b = x.split("/") c, d = n.split("/") numerator = int(a) * int(c) denom = int(b) * int(d) if (numerator/denom == int(numerator/denom)): simplify = True simplify = False
x
str
nums = [71, -2, -33, 75, 21, 19] count = 0 for num in nums: if num > 10:
nums = [71, -2, -33, 75, 21, 19] count = 0 for num in nums: if num > 10: odd_digits = (1, 3, 5, 7, 9) number_as_string = str(num) if int(number_as_string[0]) in odd_digits and int(number_as_string[-1]) in odd_digits: count += 1 specialFilter = count
count
int
nums = [71, -2, -33, 75, 21, 19] count = 0 for num in nums: if num > 10:
nums = [71, -2, -33, 75, 21, 19] count = 0 for num in nums: if num > 10: odd_digits = (1, 3, 5, 7, 9) number_as_string = str(num) if int(number_as_string[0]) in odd_digits and int(number_as_string[-1]) in odd_digits: count += 1 specialFilter = count
num
int
nums = [71, -2, -33, 75, 21, 19] count = 0 for num in nums: if num > 10:
nums = [71, -2, -33, 75, 21, 19] count = 0 for num in nums: if num > 10: odd_digits = (1, 3, 5, 7, 9) number_as_string = str(num) if int(number_as_string[0]) in odd_digits and int(number_as_string[-1]) in odd_digits: count += 1 specialFilter = count
nums
list
nums = [71, -2, -33, 75, 21, 19] count = 0 for num in nums:
nums = [71, -2, -33, 75, 21, 19] count = 0 for num in nums: if num > 10: odd_digits = (1, 3, 5, 7, 9) number_as_string = str(num) if int(number_as_string[0]) in odd_digits and int(number_as_string[-1]) in odd_digits: count += 1 specialFilter = count
count
int
nums = [71, -2, -33, 75, 21, 19] count = 0 for num in nums:
nums = [71, -2, -33, 75, 21, 19] count = 0 for num in nums: if num > 10: odd_digits = (1, 3, 5, 7, 9) number_as_string = str(num) if int(number_as_string[0]) in odd_digits and int(number_as_string[-1]) in odd_digits: count += 1 specialFilter = count
num
int
nums = [71, -2, -33, 75, 21, 19] count = 0 for num in nums:
nums = [71, -2, -33, 75, 21, 19] count = 0 for num in nums: if num > 10: odd_digits = (1, 3, 5, 7, 9) number_as_string = str(num) if int(number_as_string[0]) in odd_digits and int(number_as_string[-1]) in odd_digits: count += 1 specialFilter = count
nums
list
nums = [71, -2, -33, 75, 21, 19] count = 0 for num in nums: if num > 10: odd_digits = (1, 3, 5, 7, 9) number_as_string = str(num) if int(number_as_string[0]) in odd_digits and int(number_as_string[-1]) in odd_digits: count += 1
nums = [71, -2, -33, 75, 21, 19] count = 0 for num in nums: if num > 10: odd_digits = (1, 3, 5, 7, 9) number_as_string = str(num) if int(number_as_string[0]) in odd_digits and int(number_as_string[-1]) in odd_digits: count += 1 specialFilter = count
count
int
nums = [71, -2, -33, 75, 21, 19] count = 0 for num in nums: if num > 10: odd_digits = (1, 3, 5, 7, 9) number_as_string = str(num) if int(number_as_string[0]) in odd_digits and int(number_as_string[-1]) in odd_digits: count += 1
nums = [71, -2, -33, 75, 21, 19] count = 0 for num in nums: if num > 10: odd_digits = (1, 3, 5, 7, 9) number_as_string = str(num) if int(number_as_string[0]) in odd_digits and int(number_as_string[-1]) in odd_digits: count += 1 specialFilter = count
num
int
nums = [71, -2, -33, 75, 21, 19] count = 0 for num in nums: if num > 10: odd_digits = (1, 3, 5, 7, 9) number_as_string = str(num) if int(number_as_string[0]) in odd_digits and int(number_as_string[-1]) in odd_digits: count += 1
nums = [71, -2, -33, 75, 21, 19] count = 0 for num in nums: if num > 10: odd_digits = (1, 3, 5, 7, 9) number_as_string = str(num) if int(number_as_string[0]) in odd_digits and int(number_as_string[-1]) in odd_digits: count += 1 specialFilter = count
number_as_string
str
nums = [71, -2, -33, 75, 21, 19] count = 0 for num in nums: if num > 10: odd_digits = (1, 3, 5, 7, 9) number_as_string = str(num) if int(number_as_string[0]) in odd_digits and int(number_as_string[-1]) in odd_digits: count += 1
nums = [71, -2, -33, 75, 21, 19] count = 0 for num in nums: if num > 10: odd_digits = (1, 3, 5, 7, 9) number_as_string = str(num) if int(number_as_string[0]) in odd_digits and int(number_as_string[-1]) in odd_digits: count += 1 specialFilter = count
nums
list
nums = [71, -2, -33, 75, 21, 19] count = 0 for num in nums: if num > 10: odd_digits = (1, 3, 5, 7, 9) number_as_string = str(num) if int(number_as_string[0]) in odd_digits and int(number_as_string[-1]) in odd_digits: count += 1
nums = [71, -2, -33, 75, 21, 19] count = 0 for num in nums: if num > 10: odd_digits = (1, 3, 5, 7, 9) number_as_string = str(num) if int(number_as_string[0]) in odd_digits and int(number_as_string[-1]) in odd_digits: count += 1 specialFilter = count
odd_digits
tuple
nums = [71, -2, -33, 75, 21, 19] count = 0
nums = [71, -2, -33, 75, 21, 19] count = 0 for num in nums: if num > 10: odd_digits = (1, 3, 5, 7, 9) number_as_string = str(num) if int(number_as_string[0]) in odd_digits and int(number_as_string[-1]) in odd_digits: count += 1 specialFilter = count
count
int
nums = [71, -2, -33, 75, 21, 19] count = 0
nums = [71, -2, -33, 75, 21, 19] count = 0 for num in nums: if num > 10: odd_digits = (1, 3, 5, 7, 9) number_as_string = str(num) if int(number_as_string[0]) in odd_digits and int(number_as_string[-1]) in odd_digits: count += 1 specialFilter = count
nums
list
n = 6 A = [i*i - i + 1 for i in range(1,n+1)] ans = [] for i in range(n): for j in range(i+1,n): for k in range(j+1,n):
n = 6 A = [i*i - i + 1 for i in range(1,n+1)] ans = [] for i in range(n): for j in range(i+1,n): for k in range(j+1,n): if (A[i]+A[j]+A[k])%3 == 0: ans += [(A[i],A[j],A[k])] get_max_triples = len(ans)
A
list
n = 6 A = [i*i - i + 1 for i in range(1,n+1)] ans = [] for i in range(n): for j in range(i+1,n): for k in range(j+1,n):
n = 6 A = [i*i - i + 1 for i in range(1,n+1)] ans = [] for i in range(n): for j in range(i+1,n): for k in range(j+1,n): if (A[i]+A[j]+A[k])%3 == 0: ans += [(A[i],A[j],A[k])] get_max_triples = len(ans)
ans
list
n = 6 A = [i*i - i + 1 for i in range(1,n+1)] ans = [] for i in range(n): for j in range(i+1,n): for k in range(j+1,n):
n = 6 A = [i*i - i + 1 for i in range(1,n+1)] ans = [] for i in range(n): for j in range(i+1,n): for k in range(j+1,n): if (A[i]+A[j]+A[k])%3 == 0: ans += [(A[i],A[j],A[k])] get_max_triples = len(ans)
i
int
n = 6 A = [i*i - i + 1 for i in range(1,n+1)] ans = [] for i in range(n): for j in range(i+1,n): for k in range(j+1,n):
n = 6 A = [i*i - i + 1 for i in range(1,n+1)] ans = [] for i in range(n): for j in range(i+1,n): for k in range(j+1,n): if (A[i]+A[j]+A[k])%3 == 0: ans += [(A[i],A[j],A[k])] get_max_triples = len(ans)
j
int
n = 6 A = [i*i - i + 1 for i in range(1,n+1)] ans = [] for i in range(n): for j in range(i+1,n): for k in range(j+1,n):
n = 6 A = [i*i - i + 1 for i in range(1,n+1)] ans = [] for i in range(n): for j in range(i+1,n): for k in range(j+1,n): if (A[i]+A[j]+A[k])%3 == 0: ans += [(A[i],A[j],A[k])] get_max_triples = len(ans)
k
int
n = 6 A = [i*i - i + 1 for i in range(1,n+1)] ans = [] for i in range(n): for j in range(i+1,n): for k in range(j+1,n):
n = 6 A = [i*i - i + 1 for i in range(1,n+1)] ans = [] for i in range(n): for j in range(i+1,n): for k in range(j+1,n): if (A[i]+A[j]+A[k])%3 == 0: ans += [(A[i],A[j],A[k])] get_max_triples = len(ans)
n
int
n = 6 A = [i*i - i + 1 for i in range(1,n+1)] ans = [] for i in range(n): for j in range(i+1,n): for k in range(j+1,n): if (A[i]+A[j]+A[k])%3 == 0: ans += [(A[i],A[j],A[k])] get_max_triples = len(ans)
n = 6 A = [i*i - i + 1 for i in range(1,n+1)] ans = [] for i in range(n): for j in range(i+1,n): for k in range(j+1,n): if (A[i]+A[j]+A[k])%3 == 0: ans += [(A[i],A[j],A[k])] get_max_triples = len(ans)
A
list
n = 6 A = [i*i - i + 1 for i in range(1,n+1)] ans = [] for i in range(n): for j in range(i+1,n): for k in range(j+1,n): if (A[i]+A[j]+A[k])%3 == 0: ans += [(A[i],A[j],A[k])] get_max_triples = len(ans)
n = 6 A = [i*i - i + 1 for i in range(1,n+1)] ans = [] for i in range(n): for j in range(i+1,n): for k in range(j+1,n): if (A[i]+A[j]+A[k])%3 == 0: ans += [(A[i],A[j],A[k])] get_max_triples = len(ans)
ans
list
n = 6 A = [i*i - i + 1 for i in range(1,n+1)] ans = [] for i in range(n): for j in range(i+1,n): for k in range(j+1,n): if (A[i]+A[j]+A[k])%3 == 0: ans += [(A[i],A[j],A[k])] get_max_triples = len(ans)
n = 6 A = [i*i - i + 1 for i in range(1,n+1)] ans = [] for i in range(n): for j in range(i+1,n): for k in range(j+1,n): if (A[i]+A[j]+A[k])%3 == 0: ans += [(A[i],A[j],A[k])] get_max_triples = len(ans)
get_max_triples
int