Basics of Python
#90daysdevops
#day13
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:
Ubuntu: apt-get install python3.6
Task1:
Install Python in your respective OS, and check the version.
What are the different Data Types in Python?
Primitive :
Integer
x = 20
Float
x = 20.5
String
x = "Hello World"
Boolean
x = True
None
x=None
- Non-primitive
List
x = ["apple", "banana", "cherry"]
Tuple
x = ("apple", "banana", "cherry")
Set
x = {"apple", "banana", "cherry"}
Dictionary
x = {"name" : "John", "age" : 36}