0

simplified ver. of my code

tup = (5, 3)

for i in tup:
  x = i+4
  y = i-3

When I process this x & y only store the last value, which is 7 and 0. I want to save the results for each loop, such as

x_5 = 9
y_5 = 2
x_3 = 7
y_3 = 0

How can I create new variables within the loop to achieve this?!

Dang Pham
  • 1
  • 1

0 Answers0