Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Ghosts Age by Luker
def checkio(opacity):
spooky=10000
fibb=[]
a=0
b=0
c=1
for i in range(0, 20):
a=b+c
c=b
b=a
fibb.append(a)
i=1
a=1
while spooky!=opacity:
if i==fibb[a]:
spooky=spooky-fibb[a]
a=a+1
else:
spooky=spooky+1
i=i+1
print (fibb[a])
print (spooky)
return i-1
Oct. 28, 2016