Can someone please help me, I want to do a math operation with individual values in a list or tuple, how can I go about it | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Can someone please help me, I want to do a math operation with individual values in a list or tuple, how can I go about it

12th Sep 2019, 12:02 PM
Lucas
Lucas - avatar
2 Answers
+ 2
Could you be more specific? Example : a=(1, 2,3) b=[4,5,6] c=a[0]+b[1] this is c = 1 + 5 = 6 Hopes this helps a bit
15th Sep 2019, 8:29 PM
Loïc Mahé
Loïc Mahé - avatar
+ 1
Thanks Loic, I was later able to find a way around it. Once again thanks
16th Sep 2019, 6:53 AM
Lucas
Lucas - avatar