0

What is the value of f(255) for the function below?def f(x): d=0 while x >= 1: (x,d) = (x/4,d+1) return(d)

please describe the question and answer

2nd Feb 2019, 5:32 PM
Avijit Pal
Avijit Pal - avatar
1 Answer
0
wrong syntax. your function takes argument of x, initialize d to b zero. if the syntax were correct, it look like n infinite loop
2nd Feb 2019, 10:29 PM
Zakariya Abubakar
Zakariya Abubakar - avatar