+ 8

Can you help me to make this average program running, please?

https://code.sololearn.com/cDdk7ziWxBfh/?ref=app

19th May 2019, 12:45 AM
Bastien GERMANY
Bastien GERMANY - avatar
6 ответов
+ 7
Works fine, you just have to call that function now. For example: print(avg([5, 7, 4]))
19th May 2019, 12:50 AM
HonFu
HonFu - avatar
+ 5
As soon as you write my line under your function definition, there will be output.
19th May 2019, 12:53 AM
HonFu
HonFu - avatar
+ 4
Okey thanks. 😄🖐
20th May 2019, 12:36 AM
Bastien GERMANY
Bastien GERMANY - avatar
+ 3
print(avg([1])) redirect the output to the screen. You can use any number of items in the list but echo the output to the screen. 🤗
19th May 2019, 11:41 AM
Sanjay Kamath
Sanjay Kamath - avatar
+ 2
Okey I will try. Thanks a lot !!!
19th May 2019, 1:02 AM
Bastien GERMANY
Bastien GERMANY - avatar
+ 1
Yes I understand but there is no output available...
19th May 2019, 12:53 AM
Bastien GERMANY
Bastien GERMANY - avatar