# Basics of Python

1. **what is Python?**  
    Python is a type of computer language that people use to tell computers what to do. It's easy to learn and people use it for many things like making websites, analyzing data, and creating intelligent systems. Lots of people like to use it because it has many tools that make things easier. It can work on different types of computers and it's free.
    
2. **How to install Python?**
    
    * Go to the official Python website at [**python.org**](http://python.org).
        
    * Click on Downloads
        
    * Select the appropriate installer for your operating system
        
    * Download the installer to your computer.
        
    * Run the installer and follow the on-screen instructions to install Python on your computer.
        

# Tasks:

1. **<mark>Install Python in your respective OS, and check the version</mark>**  
    **step 1:** update your system using the command
    
    ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1681659204731/c448eb7f-2252-488d-be06-50e877d9cc0c.png?auto=compress,format&format=webp align="left")
    
    **step 2:** Now install Python by using the below command
    
    ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1681660440707/6d9c1311-3225-4c3e-8697-93101d61b848.png?auto=compress,format&format=webp align="left")
    
    **step 3:** To check the version, use the command
    
    ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1681660514984/9f4a7f9d-b0bd-4608-9e3a-ec6f9ede6668.png?auto=compress,format&format=webp align="left")
    
2. **<mark>Data types in Python</mark>**  
    In simple words, a data type is a way of categorizing or classifying the type of data or information that a computer program is dealing with. It helps the program know how to store and handle the data, and what operations can be performed on it.
    
    To check what is the data type of the variable used, we can simply write: `your_variable=100` `type(your_variable)`
    
    * **Integer (int):** Used for whole numbers.
        
        ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1681663070792/195eb6a8-17ef-4f3d-b0bc-8de05086adc8.png?auto=compress,format&format=webp align="left")
        
    * **Float:** Used for decimal numbers.
        
        ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1681663172515/ed6b6bfc-044d-4283-9025-d7173815be5e.png?auto=compress,format&format=webp align="left")
        
    * **Boolean (bool):** Used for True/False values.
        
        ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1681663254700/dfc32ef1-7154-4bc8-a071-5b96720a3f39.png?auto=compress,format&format=webp align="left")
        
    * **String (str):** Used for text and characters.
        
        ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1681663325925/ababe1e7-cc62-4853-a1eb-e7562c80437b.png?auto=compress,format&format=webp align="left")
        
    * **List:** Used for collections of values that can be of different types.
        
        ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1681663819999/f00083e7-d0fa-4988-9243-eba940d8e8de.png?auto=compress,format&format=webp align="left")
        
    * **Tuple:** Similar to a list, but immutable
        
        ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1681663908275/6cbe92f5-c5a9-422c-941b-3649994f49d0.png?auto=compress,format&format=webp align="left")
        
    * **Dictionary:** Used for collections of key-value pairs
        
        ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1681663974006/ac3e86da-fa3f-408b-822f-2d58db6a3a2b.png?auto=compress,format&format=webp align="left")
        
    * **Set:** Used for collections of unique values
        
        ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1681664017074/809460fb-1dfe-49a9-a270-7bee6de1fd95.png?auto=compress,format&format=webp align="left")
        

Thank you so much for reading.
