Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

return programming

return
if n>=0: 
  
Comment

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)
Comment

PREVIOUS NEXT
Code Example
Python :: python boto3 put_object to s3 
Python :: python3 delete file 
Python :: python return double quotes instead of single 
Python :: python update dict if key not exist 
Python :: count substring in string python 
Python :: csv to txt code pandas 
Python :: what is manage.py 
Python :: python multiclass inheritance with inputs 
Python :: string without space pythonm 
Python :: how to transcode a video in python using ffmpeg 
Python :: install python cap 
Python :: put grid behind matplotlib 
Python :: pytorch get tensor dimension 
Python :: tkinter pack align left 
Python :: from django.urls import path 
Python :: and logic python 
Python :: python sched 
Python :: selenium python element id 
Python :: how long is the pyautogui script 
Python :: inverse matrix gauss python 
Python :: nested input python 
Python :: python returning rows and columns from a matrix string 
Python :: when training= false still dropout 
Python :: sphinx, where to write the glossary of a sofware project 
Shell :: remove postgresql ubuntu 
Shell :: Please install the gcc make perl packages from your distribution. 
Shell :: list process using port 
Shell :: git username email 
Shell :: docker rm all containers 
Shell :: Ubuntu fix broken package 
ADD CONTENT
Topic
Content
Source link
Name
9+9 =