HM1_Aufgabenserie2/Schenk_Brandenberger_S2_Auf...

8 lines
145 B
Python
Raw Normal View History

2022-10-07 10:29:47 +02:00
def maxPower(base):
x = 0.5
power = 0
while x > 0:
power = power + 1
x = x / base
return power
print(maxPower(2))