This is my code:
def isPrime(n):
if n>1:
for i in range(2, n):
if (n%i)== 0:
print(n, "is not a prime number")
print(i, "*", n//i, "=", n)
break
else:
print(n, "is a prime number")
else:
print(n, "is not a prime number")
Earlier I have used idle and Jupyter notebook but now I am trying to run it via command line and I don't know how to enter argument for the function defined. I'm using cmd for the first time for running scripts. This is what it shows:


python). Inside a Python interpreter, you can import yourpyfile byimport primeand then run the function by calling it:prime.isPrime(10). If you want to run the file from the command line, you need to dopython prime.pybut you have to have some runnable code. Right now you just define a function. You need to also call it inside the file, probably under a main guard/function