Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Python version: 3.5.10

VSCode (Recommended): https://code.visualstudio.com/download


Windows

...

  • Python3 and pip may have already be installed, you can check this by opening up your terminal and typing in python3 --version and pip3 --version 
  • depending on your package manager your OS uses, do
    • MacOS: brew install python
    • Ubuntu: sudo apt-get install python
    • Fedora: sudo dnf install python

Writing your first Python program in VSCode

  • Extension (Left side) > Install the Python Extension
  • Click Select an Interpreter, Python 3.8.5 should show up on the list
  • If

Image Added

  • Create a new file called "hello-world.py" and add the following code. If a pop-up shows up about selecting an interpreter, there should be an option for Python3. If you get a message that Linter pylint is not installed, install itCreate a new file called "hello.py"
Drop here!
Drop here!
  • that too.

Image Added

  • Click the top-right green button to run. And now, you have successfully written your first Python code! 


Image Added