Python With Avirup

Python With Avirup

Share

It is widely used to build scalable web applications. Python is one of the most loved programming languages by developers, data scientists, software engineers, and even hackers because of its versatility, flexibility, and object-oriented features. ... Although it's a high-level language and can do complex tasks, Python is easy to learn and has a clean syntax.

21/02/2021

>>>
>>> dictionary={"key":"value"}
>>> print(dictionary["key"])
value
>>> d={"a":[1,2,3],"b":(4,5,9),"c":"value","d":1}
>>> print(d["a"])
[1, 2, 3]
>>> print(type(d["a"]) )

>>> print(d["b"])
(4, 5, 9)
>>> print(type(d["c"]))

>>> print(d["d"])
1
>>> print(type(d["d"]))

>>>

21/12/2020

>>> if..
>>> x=[10,20,30,40]
>>> if(len(x)>1):.. if(10,20 in x):.. print(x)..
[10, 20, 30, 40]

20/12/2020

>>> x=3
>>> if x==2:.. print("x is equal to 2").. elif x==3:.. print("x is equal to 3").. else:.. print("x is not equal to 2 & 3")..
x is equal to 3
>>>

19/12/2020

>>> range function using for loop..
>>> for i in range(2,10):.. print(i)..
2
3
4
5
6
7
8
9

Want your school to be the top-listed School/college in KOLKATA?
Click here to claim your Sponsored Listing.

Website

Address


Kolkata