Hi guys. pliz 'need ur opinion about my code on the revenue growth project. It worked but i think it's not professional😅 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Hi guys. pliz 'need ur opinion about my code on the revenue growth project. It worked but i think it's not professional😅

age = int(input()) gain_up = 20 * len([i for i in list(data.values()) if i >= age]) gain_low = 5 * len([i for i in list(data.values()) if i < age]) total_gain = gain_up + gain_low print((int(((total_gain - 530)/ 530) * 100)))

18th Nov 2021, 2:03 PM
Domiho Aimé YEDENOU
Domiho Aimé YEDENOU - avatar
2 Answers
0
A shorter and cleaner code is always Good. So your code is professional
18th Nov 2021, 3:06 PM
MATOVU CALEB
MATOVU CALEB - avatar
0
Ooh ok. Thanks
18th Nov 2021, 7:50 PM
Domiho Aimé YEDENOU
Domiho Aimé YEDENOU - avatar