BitsNBytes on Google

Monday, November 16, 2020

Intro to Ptyhon

     I've chosen Python as my main language for a variety of reason's.  It's among the top most popular languages in the world.  Python was created to be easy to read and write.  It was written to be similar to reading and writing English, and that has been accomplished very well.  

    Python has a ton of support and compatible libraries.  It works well for desktop development, web development, interacting with micro-controllers and a variety of other applications.  The documentation is also fantastic.  We will get into the documentation as well.  Its very important to be able to read and understand API's.  This is a skill that if you establish and establish well will make you a strong developer.

    The best way to get started with Python is to jump right in.  This will be a quick intro then we will jump into some videos on YouTube.  The first thing to do is download and install Python on your computer.  Here are the links to the Python download website:

  Linux distributions come with Python already installed.  Many distributions only have version 2.7 installed.   We will be working with Python 3.9 so make sure you have that version installed.

Once you have Python successfully installed you can enter the python console by opening a terminal/command prompt and typing either python, or python3 depending how you installed it.  This will bring you into the console as shown below.

Once you are in the console you can start executing python code.  Start by entering the following code in the console and hitting enter:

print("Hello Bits-N-Bytes")

Congratulations!  You have successfully written your first Python application.

The Python console is great for playing with code, debugging, learning and many other tasks.  There are other more powerful tools which I will discuss in future videos and post's.  Much of my future content will be published in video form.  The blog will be complementary to the video content.

For a great introductory book on python check out the following:

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.

File IO with Python

Direct Video Link