Skip to content

Instantly share code, notes, and snippets.

View mhsharifi96's full-sized avatar
:bowtie:
Never give Up

MohammadHossein sharifi mhsharifi96

:bowtie:
Never give Up
View GitHub Profile
#!/usr/bin/python3.5
class tape:
def __init__(self,Sum,p):
self.sum_a=Sum
self.p=p
def SUM(self):
Min=Sum
for i in range(p):
sum_left=sum(a[:i])
sum_right=Sum-sum_left