Skip to content

Instantly share code, notes, and snippets.

@DuncantheeDuncan
Created September 11, 2019 16:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DuncantheeDuncan/74080924c59525a4c063c054a6143945 to your computer and use it in GitHub Desktop.
Save DuncantheeDuncan/74080924c59525a4c063c054a6143945 to your computer and use it in GitHub Desktop.
# 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