Posts

Python 3 - Your First Python Program!

 Your First Python Program! So, in the last tutorial we learnt how to setup and install Python and VS Code. If you haven't read that tutorial, you can read it here:  https://codingwithapaar.blogspot.com/2020/09/python-3-setup-and-installation-for.html . Now, we are ready to make our very first Python program! So the first thing you have to do is open up Visual Studio Code and press on the file icon and right click. Then open a folder. Create a new folder on your computer and choose that folder. Now, in the sidebar, right click and press New File. Name the file hello.py. You can name your file any thing but the .py extension is important. Now we will start making the program. First, Python is made up of commands and statements. Today we will be learning about the print command.   The Print Command The print command prints some text onto the terminal. To use the print command:  print("Hello World") Now we will just print "Hello World" onto the screen. Here is your...

Python 3 - Setup and Installation for Windows and Mac

Image
 Python 3 - Setup and Installation Hello Everyone, welcome back to Learn Python 3! Today we will learn how to setup our local environment (your computer) and install Python. Go to this link: https://www.python.org/downloads/release/python-385/  and install Python for your Operating System. (If on Linux Ubuntu install with these commands in your terminal:  $ sudo apt-get update  $ sudo apt-get install python3.6 ). If you need more help, read this article:  https://docs.python-guide.org/starting/install3/linux/ Now open your downloads folder and double-click on the file which says "python-3.8.5". Now check the checkbox in the bottom which says "Add Python 3.8 to PATH". Then click "Install Now" as shown in the picture below: Now just wait for it to download on your computer. After that open up your terminal or command prompt.  Windows Command Prompt.  For opening the command prompt on Windows, just search in search bar in the bottom right: "cmd". I...

Python 3 - Introduction

   Python 3 - Introduction Python is a general programming language that can be used for Machine Learning/AI, Web Development, Software development etc. It is a widely used programming language and has a lot of support on the internet on websites such as  Stack Overflow . If you want to start out with programming, this is the language to learn. This language is beginner-friendly and is towards the English language. Coding will help you in logical thinking. You will create programs, games, GUIs(Graphical User Interfaces) etc.  But learning python on the internet is difficult. You have to keep browsing on the internet, find code, and browse for some good tutorials. And sometimes those tutorials might not be beginner-friendly. This tutorial is specially designed for people who are just starting out with programming Prerequisites: 1. No prior programming experience is needed. 2. A laptop/desktop is required with enough storage available to download Python We will learn h...