Fibonacci Series between two numbers in python using while loop
import math a = input('enter a value') z = input ('enter end value') while a <= z: b = ((5 * float(a) * float(a)) + 4) c = ((5 * float(a) * float(a)) - 4) d = math.sqrt(float(b)) e = math.sqrt(float(a)) if int(d) or int(e) == int: print(a) a = (int(a) + 1) what am i doing wrong at the third last line ? I'm looking to make a while loop where it prints fibonacci numbers; I'm doing ok until the part where i need to recognise if b or c is a perfect square. so i find the sq root of b and c and check if its an integer(+ or - number without decimal) and not a float(a number with a decimal). if ether of the two are an integer it would print out the integer, add one to if and continue the loop until a >= z. but I'm not getting the results i desire where am i going wrong ? pls can any1 advice ?