Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 15 additions & 3 deletions bigrandom/answer.py
Original file line numberDiff line numberDiff line change
Expand Up@@ -10,7 +10,19 @@ def answer(self):
# ommiting line number and its hashtag

# your algorithm

data= open (self.data,"r")
for line in data:
for b in(line):
if (b!="#"):
line = line[1:]
else:
break
for d in (line[1:]):
if (d=="#"):
noh+=1
suc+=ord(d)
return (noh,suc)

# add methods if you need more
a=BigRandom()
noh, suc=a.answer()
print("suc: ", suc)
print("noh: ", noh)