Some bad looping here,no range() or len() needed just loop over the list.
Now should also use f-string.
Do as i shown with working example code and output.
Now should also use f-string.
list1 = [2.2, 6.1, 7.7, 10] ratio = 3.1415926535 for n in list1: print(f"{n * ratio:.2f}\t{n}")
Output:6.91 2.2
19.16 6.1
24.19 7.7
31.42 10
hanksbrad Wrote:I put together a working example in Einblick. https://app.einblick.ai/?w=63f4e322f478ad93f5ab2006Have to Sign up to see the data,no one is gone do that.
Do as i shown with working example code and output.