return programming
return
if n>=0:
return programming
import math
n=int(input("inserte la cantidad de exponentes de una potencia de 2:"))
suma=0
if n>=0:
for i in range(n+1):
suma=suma+(math.pow(2,i))
print("el resultado de la suma de sus resultados es:", suma)
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us