Question: Problem 1 : Loops and Conditional Statements Try to work out what value of x the following code returns ( initially without running it )
Problem : Loops and Conditional Statements
Try to work out what value of the following code returns initially without running it Draw a data flow
chart like the ones used in class explaining the code.
import numpy as np
import sympy
if :
else:
if floor :
else:
if sympyisprimex :
True
else:
False
print x
Is this result true for any value of we start with? You can find out about the command isprime by
typing help sympyisprime after importing sympy
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
