PDA

View Full Version : python test programs, in terminal vs other software



joe174
August 1st, 2017, 02:36 PM
Im running Mint, 17.3

python 2.7.6

Im new to python, just learning so,

anyways, in the terminal i of course, test out say 4 + 3 hit enter duh says 7

I do this in Ninja IDE, or Pycharm, and test it, just says executed succesfully, no text or answer,

I prefer not to use the terminal to do the coding.

Thanks guys.

OK EDIT: playing around in ninja, i tried print 4 + 3 and ran it, and it gave the answer. Ive been watching some tutorials, and they dont use the print function.... maybe my pything version is lower than theres?

spjackson
August 1st, 2017, 03:11 PM
Welcome to the forums. If you are only just learning Python, I suggest you focus on Python 3 rather than Python 2, unless you have a particular need to use Python 2. https://pythonclock.org/
I'm afraid I can't help with your IDE problem - I don't use any IDE with Python.

oldfred
August 1st, 2017, 04:23 PM
I have converted to python3, but use geany as my IDE.

In Geany, I select python3 as build & execute command, change editor to use spaces, not tabs, change projects to use spaces not tabs and on save convert tabs to spaces.
It opens a terminal with output if you are not also running a gui.

I can copy & paste example code, save & then run easily.