We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Its not because of static values .Its because the Python work on REPL i.e,
R - Read
E - Execute
P - Print
L - Loop
So here when a = raw_input(3) is given it Reads the command, Execute it i.e takes a as input 3, Prints it i.e why it prints 3 and then 2 for b = raw_input(2) and then Loop back again i.e it waits to read next instruction.
Hence your output is like
325
1
6
Arithmetic Operators
You are viewing a single comment's thread. Return to all comments →
Its not because of static values .Its because the Python work on REPL i.e, R - Read E - Execute P - Print L - Loop So here when a = raw_input(3) is given it Reads the command, Execute it i.e takes a as input 3, Prints it i.e why it prints 3 and then 2 for b = raw_input(2) and then Loop back again i.e it waits to read next instruction. Hence your output is like 325 1 6