Question: Find the error in the following python code: import time def current _ milli _ time ( ) : return round ( time . time
Find the error in the following python code:
import time
def currentmillitime:
return roundtimetime
def isprimex:
prime True
if x :
return False
else:
for i in range x:
if x i:
prime False
return prime
rs
re
start currentmillitime
for i in rangers re:
if isprimei:
printiis prime"
end currentmillitime
printrers "numbers searched in endstart, "milliseconds"
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
