Question: Python 3.6- Please explain this code step by step , so I can understand for an exam. Thanks number = int(input (Enter a number: ))
Python 3.6-
Please explain this code step by step , so I can understand for an exam. Thanks

number = int(input ("Enter a number: ")) # user enters input def function1 (n): not-primes- True for i in range (n + 1)] # A boolean array initialized to True for all the numbers from 0 to n primes- [] # will store prime numbers. p = 2 # Least possible prime 10 while (p * p
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
