Introduction

Compared to other languages, Python has a simpler syntax. Python does not need to include certain libraries to perform simple functions, such as print or input. Libraries are only imported when we want to perform much more advanced functions that need the function in the module, such as advanced math operation that needs the math module, etc.

Another unique thing about Python is that it uses new lines to complete a command while other programming languages often use semicolons or parentheses. Python also heavily relies on indentation (or whitespace) to define the scope of a function. Other programming languages often use curly brackets for this purpose.

Let us see one simple example of Python:


print("Hello World")

The print() function is used to display "Hello World" to the user.


      
          

Also Look at Various Topic Below!


          
Variable and Data Type

Learn more about variable and data type here.

Input and Output

Learn more about input and output here.


                        
                          
                        
                      
Operators

Learn more about operators here.


                      
                        
                      
                    

      
          
Arrays

Learn more about arrays here.


                          
                            
                          
                        
Conditional and Loops

Learn more about conditional and loops here.

Functions

Learn more about functions here.


                        
                          
                        
                      

      
            
Classes

Learn more about classes here.

Modules

Learn more about modules here.

File Handling

Learn more about file handling here.


      
              
Cheat Sheet

Learn more about Python cheat sheet here.