Posts

BASICS OF PROGRAMMING Edition 1

Image
                            BASICS OF PROGRAMMING #1 What is programming? The process of instructing a Computer by means of an instructional program is termed as Programming. But the problem you can’t just write English or write “Make a calculator” and the computer will understand. You have to write a particular code, wait… What is a Code? A set of statements that describe how a Program should run. Writing a code can also be defined as Programming. Well, now let me complete what I was saying. You have to write a particular and meaningful code so that your computer can understand you. But one thing you should you, A computer also do not understand directly your code! How does Computer Understand Your code? Computers don't understand words or numbers the way humans do. ... To make sense of complicated data, your computer has to encode it in binary language. Binary Language Binary Language is the only language that a ma...

Getting Started by Installing python

Image
                                       Installing Python Installing Python is the easiest thing in Python. Let's Get Started ➤                                                                                            Go to the Python Offical Website Click on Downloads Click on Downloads Download the Latest Version(3.9.0 which came on Oct 5,2020 Click The Yellow Button Let the Installer download You will see a window opened like the above one After it has downloaded, click on it Click on Add Python 3.8 to PATH HERE, YOU ARE GONNA NOTICE, THERE ARE TWO OPTIONS AVAILABLE Option 1 -  THE "INSTALL NOW" BUTTON DOWNLOADS ALL THE FILES TO APP DATA DIRECTORY WHICH I...

Introduction To Python

Image
Welcome again to our Next Tutorial. In this lesson, we are going to learn the basics of python and then going to make a quick code. So let's get started. ➢ Introduction To Python So, In the last Tutorial, you learned how to install Python IDLE(stands for " Integrated Development and Learning Environment", which is  used to write, modify, and execute python scripts.) So, let's first understand the two different types of modes in which you can write scripts on IDLE. INTERACTIVE MODE Interactive mode is great for quickly and conveniently running single lines or blocks of code. It runs a single line code. The result is shown just after clicking Enter SCRIPT MODE It is used to write more than single lines. You write all your code in one text file, or script, and run all the code at once. In the standard Python shell you can go to “File” -> “New File” (or just hit Ctrl + N) to pull up a blank script in which to put your code. Then save the script with a “.py” extension. ...

Syntax, Comments, and Variables

Image
  Syntax, Comments, and Variables Guys welcome again to my latest Tutorial. Although it is completely understood what we are going to learn in the lesson, let's be specific → We would be reading how to write syntax, Indentation, how to store values in Variables, creating them, and how to write comments. So, without further ado, let's start 👉 Syntax So, Syntax is   the set of rules that defines how a  Python program  will be written. In the earlier lesson, we learned how to execute a Syntax in IDLE(script and Interactive Mode) or CMD. Indentation So, pay attention here. This is one of the most important topics. So, what is Indentation?? Indentation refers to the spaces at the beginning of a block of code. It is used to indicate a block of code IN PYTHON, while in other languages, it is used for readability. For example ⇒ (Don't Worry, I will explain Conditional Statements in my upcoming tutorials) You will find here that before the  print function, I have left ...

Getting More On Variables

Image
Getting More On Variables Welcome Again guys to PythonInsta. After a long time I am creating another Tutorial. In this tutorial, we are going to learn more about variables and some methods that we can use on them. So, without further ado, let's start 👉 Coming Up Next ⇒ So, In The previous lesson, we learned about variables and how to create them. This time we are going to do some fun things with them. The type() Function So, type() is a function used to tell which type of Data type(I will explain Data Type in my next Tutorial) is stored in the variable. For example. So, here you found that when I wrote a string(alphabets) in the variable x , It showed class str which meant that the value that is stored in the variable is an str(string) . Likewise, in the variable y , it showed me, class int(integer) and in variable z , it showed me, class float(decimals) . Correct Way To Write Strings So, you might be thinking whether should I use single quotes, or double quotes, well the an...