+ 2
Read numbers from the user until -1 is encountered. And then find the sum and mean of the given number
10 ответов
0
Anybody explain and write programme
0
what language is this
0
you could use a while loop like this
numbers = []
while True:
num = int(input("Number: ")
if num == -1:
print("Sum:", sum(numbers))
print("Mean:", (sum(numbers))/len(numbers))
break
numbers.append(num)
0
although you could make your own implementation, im only giving you an example
0
You well python
0
pardon?
0
You complete python and another you help me in python I am a beginner
0
ah well that's great welcome to the community, hope you'll be a good programmer soon(not saying you're not good) have a great day
0
You are job doing study like btech