How i add the price outputs together?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
2nd Mar 2020, 8:30 AM
Syed Arsalan
Syed Arsalan - avatar
5 Answers
+ 1
A workaround might be returning the total from the function. Like total1=meatprices() where at the end of the function you can return the price.Like this: https://code.sololearn.com/co2IxyMwlzsK/?ref=app
2nd Mar 2020, 9:24 AM
Zodiac
+ 1
Thanks Zodiac
3rd Mar 2020, 7:35 AM
Syed Arsalan
Syed Arsalan - avatar
0
Check this is not working
2nd Mar 2020, 8:44 AM
Syed Arsalan
Syed Arsalan - avatar
0
And how can i Short this code
2nd Mar 2020, 8:44 AM
Syed Arsalan
Syed Arsalan - avatar
0
Thnx swim
3rd Mar 2020, 7:49 AM
Syed Arsalan
Syed Arsalan - avatar