def main():
print ("This program illustrates a chaotic function")
x = (float(input("Enter a number between 0 and 1: ")))
for i in range(10):
x = 3.9 * x * (1-x)
print (x)
main()
When I type the program above into my Visual Studio Code desktop application, it returns the problem notification:
W0612: Unused variable 'i'
But when I run the same program with the built in python 'Idle' interpreter, the program runs just fine.
_or__if you want to indicate that a variable is not going to be used.