HM1_Aufgabenserie2/Schenk_Brandenberger_S2_Auf...

8 lines
145 B
Python

def maxPower(base):
x = 0.5
power = 0
while x > 0:
power = power + 1
x = x / base
return power
print(maxPower(2))