Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 I do not understand why my python looks different from tutorials.
For some reason mine looks like this:
But all the tutorials are like this:

Thanks in advamce!
"yours" is what we call python interactive mode. That is when on command line you type python (or python3) and hit Enter. You can see the interactive prompt >>>. Each line is executed when you hit Enter. This is for quick experiments, test ideas, etc. You want to write your code as scripts (in files) in order to be able to reuse them.
"tutorials" is some IDE (but could be just some text processing program like Notepad). In the IDE you write your script and save it as .py file and then on command line you eneter something like
C:\>python (that on windows)

read this for different ways to execute python code

There are multiple threads that discuss different IDEs - you can search for them

Finally, in future don't post images, copy/paste code in python tags
Please, use proper tags when post code, traceback, output, etc.
See BBcode help for more info.
Is this what python shell is for?

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  Trying to understand the python code spalisetty 2 188 Mar-16-2020, 08:11 AM
Last Post: javiertzr01
  Hi, looking for "dunder" tutorials. AlluminumFoil 3 202 Mar-02-2020, 08:37 PM
Last Post: jefsummers
  I dont understand bytes in python. blackknite 3 429 Oct-02-2019, 07:39 PM
Last Post: Gribouillis
  Python Modules and Tutorials marienbad 1 496 Jan-31-2019, 08:36 PM
Last Post: ichabod801
  Trying to understand how import works in python patrick99e99 3 1,307 Jun-12-2018, 04:48 AM
Last Post: patrick99e99

Forum Jump:

Users browsing this thread: 1 Guest(s)