Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

python sum of 10 numbers from user input

a_list = []
print("Please enter 10 numbers with or without decimals
")

for num in range(10):
    list_num = float(input("Enter a number:"))
    a_list.append(list_num)
print(sum(a_list))
Comment

python sum of 10 numbers from user input

a_list = []
print("Please enter 10 numbers with or without decimals
")

for num in range(10):
    list_num = float(input("Enter a number:"))
    a_list.append(list_num)
print(sum(a_list))
Comment

PREVIOUS NEXT
Code Example
Python :: python launch prompt 
Python :: python print binary tree 
Python :: python discord bot embed 
Python :: the requested resource was not found on this server. django 
Python :: # Import KNeighborsClassifier from sklearn.neighbors 
Python :: add in python 
Python :: part of a flower 
Python :: sphinx themes 
Python :: how to add two strings in python 
Python :: text to png python 
Python :: optimization in python 
Python :: python all any example 
Python :: first n prime number finder in python 
Python :: Use the correct syntax to print the first item in the fruits tuple. 
Python :: number pattern program in python using for loop 
Python :: prime numbers 1 to input 
Python :: Mixed Fractions in python 
Python :: python << meaning 
Python :: slug 
Python :: draw a bow tie in python 
Python :: forgot password miguel grinberg 
Python :: roll a dice 
Python :: command to update pip 
Shell :: Starting Apache...fail. 
Shell :: set default branch to main on git init 
Shell :: gyp ERR! stack Error: not found: make 
Shell :: install rest framework 
Shell :: git match remote master 
Shell :: how to flush dns on mac 
Shell :: conda opencv 
ADD CONTENT
Topic
Content
Source link
Name
6+2 =