Article 4S0DV Python Syntax Error

Python Syntax Error

by
Gyroman
from LinuxQuestions.org on (#4S0DV)
Very simple Python question

This code comes at the beginning of a program before a while statement

Code:A = int(input("A ="))
N = int(input("N ="))

PrN = (1/A)*(((N-N/A)/N)
imp = 1/PrNwhen run produces
Code:imp = 1/PrN
^ Syntax ErrorWhy is this a syntax error?latest?d=yIl2AUoC8zA latest?i=DmT6P6n7ZD8:oWy3dfRMTDo:F7zBnMy latest?i=DmT6P6n7ZD8:oWy3dfRMTDo:V_sGLiP latest?d=qj6IDK7rITs latest?i=DmT6P6n7ZD8:oWy3dfRMTDo:gIN9vFwDmT6P6n7ZD8
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments