# File: chaos_comments.py # A simple program illustrating chaotic behavior with comments # Defining a new function/method called "main" # programs are often placed in the function called "main" def main(): print("This program illustrates a chaotic function") x = eval(input("Enter a number between 0 and 1:")) for i in range(10): # for loop with 10 iterations i=0,...,9 x = 3.9 * x * (1-x) print(x) # invoke the defined main function main()