Day 13: Basics of Python
What is Python?
Python is an Open source, general-purpose, high-level, and object-oriented programming language.
Python is a computer programming language often used to build websites and software, automate tasks, and conduct data analysis
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:
For Windows: https://www.python.org/downloads/
Ubuntu: sudo apt-get install python3.6
Install Python in your respective OS, and check the version.
Read about different Data Types in Python.
Below are a few built-in Data types in Python:
Integers: Integers, or
int
for short, are whole numbers with no decimal point. They can be positive, negative, or zero.Floating-point numbers: Floating-point numbers, or
float
for short, are numbers with a decimal point. They can also be positive, negative, or zero.Strings: Strings, or
str
for short, are sequences of characters enclosed in quotation marks (either single or double). They can contain any combination of letters, numbers, and symbols.Booleans: Booleans, or
bool
for short, are values that can be eitherTrue
orFalse
. They are often used in conditional statements and logical operations.Lists: Lists are ordered collections of values, which can be of any data type. They are enclosed in square brackets and separated by commas.
Tuples: Tuples are similar to lists, but they are immutable, meaning that their contents cannot be changed once they are created. They are enclosed in parentheses and separated by commas.
Dictionaries: Dictionaries are collections of key-value pairs, where each key is associated with a corresponding value. They are enclosed in curly braces and separated by commas.
Sets: Sets are collections of unique values, meaning that each value can only appear once in the set. They are enclosed in curly braces and separated by commas.
\===========================***==============================
Will appreciate your feedback :) #90daysofdevops
linkedin.com/in/sweety-samya-963859130
Happy learning!-