Saturday, October 15, 2022

How to download (IDLE python).✨

 

          @pythonguru26

Hi everyone,😊 hope you all had a great time and would have been looking forward to the next blog (please don't say you didn't care if I went missing). So, I will try to be more regular now onwards and will try my best to make easy and informative tutorials. In previous blog, we got familiar with  Basics of Python, its data types and usage. In this blog, we will elaborate the steps to download python code editor named IDLE.




πŸ‘‰ Now let's gets stared on how to download IDLE PYTHON in your computer :::::---

⫷ Step 1⫸  Visit the official site of Python at https://www.python.org/downloads/

⫷ Step 2 ⫸  Click the "Downloads" link and choose the version of Python you want to install.

⫷ Step 3 ⫸  Download them, double-click them and run them, following the                  instructions to install Python and IDLE on your system.

@pythonguru26


Now you are ready to write python program in your computer.πŸ‘

Shoot your queries in the comment section.

Stay tuned for the next blog.✨😊😊


Until then, Hasta la Pasta!!🀠

Take care and stay Healthy!!😊

Tuesday, June 7, 2022

πŸ‘‰Python 1.1πŸ‘ˆ

  


Hi everyone, hope you all had a great time and would have been looking forward to the next blog (please don't say you didn't care if I went missing). So, I will try to be more regular now onwards and will try my best to make easy and informative tutorials. In previous blog, we got familiar with Python, its advantage and usage. Now onwards, I'll try to explain the coding aspect of this awesome language.
 
Basics of Python:

Every language has different data types to store the input. Data type is a kind of classification to categorize different type of data. For example, data can be integer, a decimal value, a string, etc.  There are other complex data types which we will explore some blogs later when we develop enough understanding of the language. To understand the most basic data types, let's dive in:
 a) Int :- Any integer value (positive and negative both) has the data type "int" in python.   Eg: 417, -536
 b) Float : - All the decimal values are of the data type "float". 
Eg:  2639.78, -72.91437
c) String :-  A combination of English alphabets is said to have data type "string". They need not be meaningful words. A single alphabet too will be considered of type "string".        Eg:  r, cefxrz, hello world, etc.

Do you want to try writing simple code yourself? In order to run a program, we must make the computer understand the commands we are passing. To make any code work , we need to execute or run the program in a  suitable environment. We call them IDE, which stands for Integrated Development Environment. They have necessary settings and configuration which offers the users to run their program. Some common Python IDE are Pycharm, IDLE, Visual Studio Code, Sublime Text, etc. Installing them for the first time on system can be intimidating for beginners so let's do it some other time, once we have become confident with the language. For now, we may use any online IDE. These are many websites which offer free IDE for a variety of languages. I generally prefer codechef. You may also give it a try and do let me know your favorite IDEs in the comments. So, you can access Codechef's online IDE from this link.




The most basic program in any language is to print something. In python, we use the keyword "print" to display the output on screen . 
And in order to know the data type of any input, we can use the keyword "type". We will start with coding some basic programs which will involve printing certain input and it's data type from user. We will use the "type" keyword as well to understand how it works.

To print any string, we need to pase it between double quotes, viz, " ".   Eg:-
                      print ("Hello World!") 
                            print(type("Hello World!") )


             πŸ‘‰ print (" xyzlexbir")
                          print(type(" xyzlexbir"))πŸ‘ˆ



Now, let's play with numbers. Numbers are passed without any double quotes. Eg:-
             
              print (-5134.26) 
                  print(type(-5134.26))
           
            
        πŸ‘‰  print(453.79) 
                    print(type(453.79))
                    print (23) 
                    print(type(23))πŸ‘ˆ
             
                                print(-967876324517) 
                                    print(type(-967876324517))

All you need to do is select the correct language from dropdown, type the code in the blank area and then hit on "Run" button. 
     So, copy the above code and go to IDE of your choice, paste it click on "Run" and see  your first program in Python. 

 Congratulations!! You did it!! ✨✨πŸ˜ƒ

In next blog, we will try to write a dynamic program. What is that? Let's find out in next blog.

Stay tuned for more fun and learning!!  ✌✌            

Until then, Hasta la Pasta!!🀠

Take care and stay Healthy!!😊



  

Tuesday, January 25, 2022

Python for Beginner

 



What is Python?

I'll write this blog assuming that you're a newbie in the field of Python so, I would first like to introduce what Python exactly is?   

Instead of starting the blog straightway with the history of Python, data structures involved and the syntaxes, I want to discuss what actually it is, why it is required and where it is used, in order to develop a interest of the users in Python. 

Starting with, what is Python?  In simplest terms, Python is a 'Programming language'. This arises a new question, what is  "Programming language". A programming language is a set of instructions or rules which helps the user to implement their ideas in computer or other devices like mobile, tablet etc. In other words, it helps the user to interact with computer and pass commands in order to execute them.

Programming languages came into existence in 19th century and since then world has  witnessed birth of several of them. From the development of primitive languages like machine language and assembly language, to the popularity of modem languages like C, C++, Java, Python, programming language has helped the programmers to write efficient programs to automate and develop solutions to the real time problems.

Now, coming  to the point, what is Python? We can that say that python is a computer programming language which can be used to create a variety of programs serving different purposes.

Why do we need Python ?

As mentioned earlier, late 20th century brought the  development of popular modern  languages of world like C++, Perl, Java, etc. So, what makes Python different from existing languages? Why should we use Python?

 All the programming languages have certain well- defined code structure with pre-defined words and a user must ensure to follow the coding standard of chosen  programming language at all times else the program will throw an error. To be straightforward, all programming languages have their advantages and disadvantages and none of them is superior to other. So the  choice of programming language boils down to two things in general:

(1) The purpose to be served - one shall choose a programming language based on the application or project they are working on. for example, to build a basic website one can use HTML and CSS while to predict the weather of an area one can prefer Python. 

(2) The ease of learning - for someone very new to the world of programming, one should choose a programming language with least complex syntaxes and code structure, in order to make the learning easy.

Python solves the both concerns. It is a beginner-friendly language  having extremely simple code structure and syntaxes which are quite easy to read and understand even if someone is unfamiliar to programming. It uses English keywords and therefore makes it easier to understand. Let me show you an example.

Until now, I haven't introduced any syntax of Python but I believe the simplicity of code will make you understand the previous point I stated.

Let's have a look at following piece of code.




I hope even without being introduced to the syntaxes in Python, the above code makes sense to you. And if not, I'll make sure to reiterate this in future blogs. 
So apart from being user friendly this language can be used for a variety of purposes therefore making it an ideal language to be picked by the beginners.

Where is Python used?
Before starting with the syntaxes, I would like to discuss one last point. Before jumping into learning anything, I believe it's a good idea to learn what it can offer, purposes it can serve and the areas where it can be used. Python can almost perform any task starting from web development, desktop applications, machine learning, data analysis to robotics, game development, etc. Python has proved its versatility. Tech giants like Google, Mozilla, Microsoft, Netflix, Reddit, Slack use Python in different ways to serve their purpose.
 
I hope this has made you interested in learning Python.
Let's know something more about Python in the next blog !! Stay tuned!! Until then stay safe, stay healthy!!😊😊


Python for beginner

How to download (IDLE python).✨

            @pythonguru26 H i everyone,😊 hope you all had a great time and would have been looking forward to the next blog (please don...