For creating website with python
Django and flask for handling backend
Frontend – interactive dashboard using plotly and dash.
1. Installation of python
Installa anaconda and from anaconda will install python
[Link]/downloads
[Link]
text editor: sublime text and atom
jypyter notebook // most popular
print (‘hello’) // will print hello
quit() // for quiting
[Link]
PYTHON Datatypes
Int = 3 300
Float = 2.3 4.6
Strings = “helllo” “3” “tamil”
List= [10, “hello” 20.3 ] // orders list of sequences
Dict = key value pair = {“name”: “vini”, “age”: “26”}
Tuples = (10, “hellp”) // ordered immutable sequences
Sets: unordered collection of uniques objects (“a”, “b”)
Boolean: true or false
2 **3 // 2 power of 3
2 % 3 // 2 mod of 3
Variable assignment in python is dynamic
Eg: mynum=1 later on same code we can use mynum= [1,2] // It will accept
In other programming languages it will throw error because of static data types.
To find the date type
Type (a)
o/p will be int
if we indicate in square brackets
char: [ h e l l o ]
inde: 0 1 2 3 4
rev in: 0 -4 -3 -2 -1
print (‘Hello \nworld’) // new line
print (“Hellp \t World ”) // tab
len (I am) // 4 letter
mystring = “Hello World”
mystring [0] // H starts with 0 include space also
mystring [-2] // o/p l
mysting=abcdegj
mystring[3:6] //def
mystring[::2] // every second char acegik
mystring[::-1]// reverse jgedcba
String concat
First = “Sam”
X = first[2:] // it will take am
Y=P
Z= y + X
Letter =Z
Letter * 10 // zzzzzzzzzz
‘2’ + ‘3’ // 23
2+3 //5
L= hello world
[Link] ()// will becomd Upper
X= Hi This is string
[Link](i)