Don't get the same result when i write the same code on pycharm


#1

i’ve tried several times to run this code on pycharm but i didn’t get the result as i get it in codecademy. i don’t understand what i’m doing wrong & lastly can anyone please help me to find an open source IDE (where i’ll feel comfortable as I feel in codecademy) for a newbie python programmer


#2

what python version are you using outside of codecademy? Codecademy uses python2, where pycharm very likely uses python3, so you would need to look at the differences between these two major python versions


#3

outside of codecademy i’ve used both python-2(python 2.7.14) & python-3


#4

okay, but code you copy from codecademy to pycharm and run with python2, that should work fine, what is the problem?


#5

the problem i face always in the print section for this particular code only


#6

Please be more descriptive, please provide code, error mesage and python version used in pycharm. Or a screenshot, something for me to work with

you run into issues when using print in python3?


#7


#8

That looks to me like you copied it by typing it instead of using your operating system’s clipboard
That’s wrong in several ways, no matter where or how you run it


#9

what are those wrong?


#10

You could compare with the original. You said you have a running version of that code, so you don’t need me to find the differences.
There are also error messages from python which you can read and fix one at a time
You can also remove things from the code so that you area dealing with less at a time, and add them back when you have all the current parts working