Aug-08-2018, 07:42 AM
(Aug-08-2018, 07:39 AM)sylas Wrote: Did you try the files on python2 ? My problem is on python2 since I cannot use python3 because python3 cannot import click.yes, python2. that is why I say I have problem because you use input and not raw_input.
and as already explained to you several times - install click for python3 if you want to run it with python3
C:\>C:/Python27/python.exe c:/solver.py solver.py in python2.7 Resolve second degree equation. Enter the coefficients(numbers): a,b,c Are you ready: y/n ? y ('you entered: ', 'y') a 1 b 6 c 9 (-3.0, -3.0) do you want to begin again for another equation ? sylas Do you agree ? y/n We wiil continue a s Traceback (most recent call last): File "c:/solver.py", line 42, in <module> Solver().demo() File "c:/solver.py", line 13, in demo a = float(input("a ")) File "<string>", line 1, in <module> NameError: name 's' is not definedAlso note that it doesn't matter which version I use - if there is indentation error it will be the same in python2 and python3
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs