What is Python?
- Python is a Open source, general purpose, high level, and object-oriented programming language.
- It was created by Guido van Rossum.
- Python consists of vast libraries and various frameworks like Django,Tensorflow, Flask, Pandas, Keras etc.
How to Install Python?**
You can install Python in your System whether it is window, MacOS, ubuntu, centos etc.
Below are the links for the installation:-
[Windows Installation](https://www.python.org/downloads/)-)
--) Ubuntu: apt-get install python3.6
Task1:
1. Install Python in your respective OS, and check the version.
sudo apt update
sudo apt install python3
Verify the installation by typing the following command and press Enter:
python3 --version
2. Read about different Data Types in Python.
Python is a dynamically-typed language, which means that variable types are inferred at runtime. Python has several built-in data types that are used to store values or collections of values. The most common data types in Python include:
Numbers: Python supports integers, floating-point numbers, and complex numbers.
Strings: Strings are used to represent text in Python. They can be enclosed in either single or double quotes.
Lists: Lists are used to store collections of values, which can be of different data types. Lists are mutable, which means that their contents can be changed.
Tuples: Tuples are similar to lists, but they are immutable, which means that their contents cannot be changed.
Dictionaries: Dictionaries are used to store key-value pairs. Each key is associated with a value, and keys must be unique.
Sets: Sets are used to store unique values. They are unordered and mutable.
Boolean: Boolean are used to represent truth values, which can be either True or False.
Thank you for reading.