Professional Documents
Culture Documents
Python
Python
1) remove c)
c)
2) pop
3) clear C)
Removing
'
Y or
spaces ,
anything
from
string .
<
2
÷
List method : -
fusing zip) .
Output
→ james gmail
→ john hotmail
jack yahoo
.
→
using dictionaries in program .
Example :
-
Ars
:- code
input
←
input ←
←
output
output
.
←
.
Math Library
.
Numeric functions .
nssqhÉn
.
W >
points
→ tfneyyotirefcimal
>
ñ%¥¥Es•
ñ%y¥¥gñ
part
integer
only decimals
.
>gives( without
root of a number
→ math Sort 149)
.
IX. 5
-
Otp : -
7 .
for
.
=
enumerator .
0/ P :
contents
started
1.
Getting .
what is
1
python
.
: -
Amongst
To use
python
.
2 .
head over to
Step -2 : open browser
-
step -2 : -
download
latest
version available
step 3 : -
make sure
click
you
this
step 4 : -
verify whether
installed
python >
of not
open
step 5 : -
type python .
check this
-12
press centre "
in
enter to
and
exit .
3. Python Interpreter .
expressions
.
Boolean
}
→
it doesn't have
} → Here we have incomplete expression
right syntax so python is giving
syntax error
.
> In
programming syntax means
grammar
just like we have in
languages if we don't use correct grammar
of not understand
there are chances some
people may
the sentence .
same
way
we have
syntax in
programming languages
4. Code Editors .
code
→ To write
python we use
→ Editor or IDE →
( Integrated Development Environment)
has
IDE
→ some
fancy
features
like
→
These IDE
features brings
→
>
more
productivity .
vs code .
5. Your First python program .
^ nerve
from the tab
click on open
new
create
←
folder
and
open
-
r
this fill
click
on
this
aide
on python
tab to
create
Y →
name.
ex : app PY
-
]
.
¥ > extension .
}
→
to save on windows .
y →
be on
the key
will
symbolESC key before 1
oh key
.
thtsyelow
open
terminal
to to
} studio
" →
vs
on code .
our
we } →
type Python app PY
.
to sun code .
} →
output .
IF Flexion .
filename
.
••
UP
<qT .
} → file name .
← xp .
6.
Python Extension .
→ we install
plug-in 's and extensions in vs code and
becomes
powerful IDE and we use vs code to
build
python applications .
By doing this we
get these
features .
× ,,
error
checks errors in and
used
.
not linter
did
immediately
so .
we
d-
here
pararrthabi
errors
shown
used
now we
←
^
parenthesis
error is gone
.
so
file
.
see
list our
in
we can error
Here of
✓ ← for mac
.
For windows
of old
in
file .
list
r
↳ No
odd ↳ No error in list .
8. code
Formatting Python .
click on this
←
Feat
←¥¥p
(pets
to understand
assignee and number and it makes little difficult
if there is lot of code written in this way .
→ we can add space b/w %=y manually .
Face tfpace
s
<
it this
click on
click on this
← search
7 this
click on
feature .
rz .
click ✓type here
n r
3.
click
2. click .
← Type this
7
mark
EYE
we wrote
code
is the
→
This
saving automatically
After
gets formatted
looks ctean
.
Now code
10 .
python Implementations .
C
language .
} → standard .
II. How code is executed
python .
ti t
Human computer
readable understands .