Created
September 11, 2019 16:12
-
-
Save DuncantheeDuncan/74080924c59525a4c063c054a6143945 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# taking user input from the user | |
space ="\n" | |
print space | |
one = input("enter the first number ") | |
two = input("enter the second number ") | |
three = input("enter the third number ") | |
four = input("enter the fourth number ") | |
five = input("enter the fifth number ") | |
print space | |
print space | |
# Displaying the output from the user. | |
print "you entered ", one ," as your first number" | |
print "you entered ", two ," as your second number" | |
print "you entered ", three ," as your third number" | |
print "you entered ", four ," as your fourth number" | |
print "you entered ", five ," as your fifth number" | |
length = [one,two,three,four,five] | |
answer = one+two+three+four+five | |
print space | |
# print len(length) | |
le = len(length) | |
total = answer / le | |
print "The avarage value is :%.2f" %total |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment