• + 0 comments
    python3
    
    def isFibo(n):
        fibo = []
        a = 0
        b = 1
        fibo.append(a)
        for i in range(1, 101):
            fibo.append(b)
            c = a+b
            a = b
            b = c
        
        if n in fibo:
            return "IsFibo"
        else:
            return "IsNotFibo"