Apostila de Python
" # $%
&
%' ( $ )
!
!"
#$%&
' !"&()$%&
#
*"
+&!,
) &
!
"
'&
'&
#
*"
+&!
$%&
(
( * , ,+
'&
(
(
%&
)
*
"
(
(
--- %& .*
*+
*
0
* 1
30 !
4
2
"
.
*
*)
*"
1
"
$%&
/
5
+!
$%&
5
0
2
6
!
30
&
6
'&
!
(
(
---
*+
&
1
!
7
! &"
1
1
8
1 30
4
0
!
7 !
8
"
.
9 2
*
Josué Labaki
#
/
$%&
&
;< 2$
:
=& 2
labaki@feis.unesp.br
2
-!(./
# "
0 1.!(
*"
+&!
>$
2
$%& ?
A;
@
$%&
C;
B
$%&
D
EF "
# "
G
. & (
34 "
&
56
>2
>H
A5
>@
C
>I
E/
# "
"
A>
7& 0#"
#!(& 34 "
&
89
>J
AC
A6
# "
30
" : && : #
() #
AB
&
8;
>
AI
A
C>
C=
CC
EJ
C@
@
,
EH
B
EA
# "
& &
# "
7)!$@
.0 . &
>/
A J 37
C6
*
&< #0# /&0 ="
&
>?
A()=
&
25
37
@>
K
@D
BA
3
E
BB
@;
DC
# "
=
* &
A
!
C
"
E
@
0 #G
CCC
* &
/
"
$
>HH
>HA
>HE
;
E /G
/.&
I@
IG
#
!
B
# " F
37
)
&
>HI
555
559
4
# "
>
0 1.!(
& B)
"
)(#
*"
+&!
*"
+&!H
$%&
5
30
5
+!
&
#
F
N
-! 5
1!
'
! $
O
8
6
'FL55. F %L &
*
M$
30
O
*
P
8
$%&
!
*
!
+!
*
'$%&
!
1!
+
&)
"
$%&
$%&
*)
*
*
)
37
M 1
!
!
30
3
*)
N
! $%&
"
)
$%&
*
=
)
"
!
O
O
* &
O
3
$%&
'
P
#
!
5
< 2!
!
/
+!
!
JR
;
#
%'&
$&
! =
5 &
$%&
3
%!
$%&
!
2
';2 +!
>> valor1='Boa tarde!'
>>> valor1
'Boa tarde!'
>>> type(valor1)
*)
$%&
0 .!" . & ! K
=
" ' 4
&
30
8
37
37
+! ".!< ' 1 +! =
. "
# !"
) =
#
*) int! float