Listing 05 - Page 0: No Title

##############################################################################
# Python From Scratch
# Autor: Nilo Ney Coutinho Menezes
# Editora Novatec (c) 2010-2024
# Site: https://pythonfromscratch.com
#
# File: listing\chapter 05\05.1091 - No Title.py
# Description: No Title
##############################################################################

n = 1
sum = 0
while n <= 10:
    x = int(input(f"Type {n} number:"))
    sum = sum + x
    n = n + 1
print (f"Sum: {sum}")
Click here to download the file