Hi all . The folllowing file does not stop on the presence of CR. I wish i finish inputs on the presence of CR, that is nothing entered. At the presence of CR I should like to get the sum of all and the average value.
my code here
my code here
# file4.py import sys def getvalue(): value=input("enter the value ") print("value entered : ", value) #if (value="") # sys.exit(0) return value size=40 print("here is the addition of many numers (even with a .) Maximum of numbers=",size) print("once you have finished your list of numbers, just press ENTER to indicate the end\n") sum=0.0 value=0.0 count=1 print("bonjour") while (count != 0): getvalue() sum += value ++count