Jul-20-2023, 09:22 PM
(Jul-20-2023, 05:47 AM)Pedroski55 Wrote: Ah, pick another letter, not e for Euler's number!
Is this what you expect?
mylist = [27, 84, 110, 133] e = 0 for num in mylist: e = e + num**5 print('e is', e) print('e**0.2 is', e**0.2) Z = e**0.2 print('Z is', Z) if Z == e**0.2: print('e**0.2 and Z are the same!')
Output:e is 14348907 e**0.2 is 27.000000000000004 Z is 27.000000000000004 e**0.2 and Z are the same! e is 4196468331 e**0.2 is 84.05756207758672 Z is 84.05756207758672 e**0.2 and Z are the same! e is 20301568331 e**0.2 is 115.2141759184629 Z is 115.2141759184629 e**0.2 and Z are the same! e is 61917364224 e**0.2 is 144.00000000000003 Z is 144.00000000000003 e**0.2 and Z are the same!
It would appear you are correct, it seems to be a problem with the table syntax? maybe tables work better than just A + B + C + D?
-- "Incrementum Vitae Ex Animo" - Lucifer Daddy