program to return lists whose average is equal to given avgvalue of main list and those list are formed from a given main list | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

program to return lists whose average is equal to given avgvalue of main list and those list are formed from a given main list

Input=[30,30,15,15,60] ,avg value=30 Output=[30,30],[60,15,15] Note list must contain atleast two values

31st Aug 2020, 4:04 PM
Tuticorn
5 Answers
+ 4
We are not here to do your homeworks
31st Aug 2020, 4:10 PM
v@msi😉
v@msi😉 - avatar
+ 3
OK, once show your attempt. So I can understand
31st Aug 2020, 4:17 PM
v@msi😉
v@msi😉 - avatar
+ 1
Show the code, even it is Bruce (Lee) Force
31st Aug 2020, 4:41 PM
Shadoff
Shadoff - avatar
0
I tried brute force method but iwant to know if there is any other method that's it
31st Aug 2020, 4:12 PM
Tuticorn
0
Check avglist code in my profile I made it public
31st Aug 2020, 4:44 PM
Tuticorn