Quote:hbkmjr wrote: In cmd use the full path to the python 3.4 exe.This works!
C:\Users\path to\python3\python.exe yourpythonfile.py
But going to >>> by entering 'python3', then entering the program name, results in "File <stdin> , line 1 in <module> NameError: name: 'seq' is not defined" error. The program filename is seq.py and that's what I enter at >>>. It is in the Python34 directory where I am when I enter 'python3'.
(Aug-13-2017, 09:42 AM)snippsat Wrote:That worked in 2.7.5! How strange.. Thank you.Regulus Wrote:Is that what's causing the floating point numbers to print incorrectly? How can I start running 3.4?Yes,and install 3.6 Python 3.6 and pip installation under Windows also part 2.
Excellent advice. I will try it as soon as I resolve this problem I've had in Win 7 that has prevented me from installing anything from the internet since I downgraded from Win 10 to Win 7.
(Aug-13-2017, 05:40 AM)Regulus Wrote: Btw, I don't understand what this suggestion means: "Add a dot 18. and it magically work."You make it float bye adding.
,then it work for Python 2.
c_n = float(((12*n + 5)/(3*n + 18.)))...