Python Programming concepts
Python Programming concepts
----------
PYTHON INSTALLATION:
www.python.org
you go to download option
then you will find the latest python
version
you click on that latest version
button it will be downloaded
once its downloaded double click on
downloaded file and click next, next--finish
c) complex:
The number which is having real and
imaginary parts
a+ib
a- real part
b- imaginary part
syntax:
a+b*j
ex:
2+4j
3. Strings:
Collection of characters. It may enclosed in " "
or in ' '
ex:
s="hello"
type(s)
<class 'str'>
s1="abc123"
type(s)
<class 'str'>
s2="2432"
type(s2)
<class 'str'>
s3="1213@#$"
type(s3)
<class 'str'>
s4='abc12'
type(s4)
<class 'str'>
s5='''hello
this
is
also
string
only'''
type(s5)
<class 'str'>
s6="""this
is
one
more"""
type(s6)
<class 'str'>
Advanced datatypes:
1. Lists
2. Tuples
3. Sets
4. Dictionaries