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.
#1
For some reason mine looks like this:
https://imgur.com/a/4NLgRSP
But all the tutorials are like this:
https://imgur.com/a/5xtIS1r



Thanks in advamce!
Quote
#2
"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 your_script.py (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.
Quote
#3
Is this what python shell is for?
Quote

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  I dont understand bytes in python. blackknite 3 195 Oct-02-2019, 07:39 PM
Last Post: Gribouillis
  Python Modules and Tutorials marienbad 1 299 Jan-31-2019, 08:36 PM
Last Post: ichabod801
  Trying to understand how import works in python patrick99e99 3 1,063 Jun-12-2018, 04:48 AM
Last Post: patrick99e99

Forum Jump:


Users browsing this thread: 1 Guest(s)