x = int(raw_input ('Enter an integer'))
ans = 0
while ansansans < abs(x):
ans = ans + 1
Say the integer i input is 55. so why do I get a 'current guess' value up to 4. Shouldn't it stop at 3, since the while condition says: ans * ans * ans until the product is less then the absolute value of the number entered/assumed (in this case 55)
It looks like you're new here. If you want to get involved, click one of these buttons!