Expand|Select|Wrap|Line Numbers
- def compare():
- for i in range(num_iterations):
- A = A * a * (1 - A)
- B = B * a * (1 - B)
- print A, B
- def main():
- a = input ("Enter the amplitude: ")
- num_interations = input ("Enter the number of interations: ")
- A = input ("Enter the starting value for the A series: ")
- B = input ("Enter the starting value for the A series: ")
- compare()
Traceback (most recent call last):
File "<pyshell#46>", line 1, in <module>
compare()
File "<pyshell#45>", line 2, in compare
for i in range(num_iterations):
NameError: global name 'num_iterations' is not defined
Any help would be appreciated. Thanks!