- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample03.py
More file actions
Latest commit
24 lines (20 loc) · 648 Bytes
/
Copy pathexample03.py
File metadata and controls
24 lines (20 loc) · 648 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
frase='Python é uma Boa Linguagem de Programação'
print(frase[3:13])
print(frase[:10])
print(frase[1:20:2])
print(frase[1::2])
print("""
. (҂`_´)
<,︻╦̵̵̿╤─ ҉ ~ •
█۞███████]▄▄▄▄▄▄▄▄▄▄▃ ●●●
▂▄▅█████████▅▄▃▂…
[███████████████████]
◥⊙▲⊙▲⊙▲⊙▲⊙▲⊙▲⊙
""")
print(frase.count('o'))
print(len(frase.strip()))
print(frase.replace('é uma Boa', 'é da hora '))
print('Linguagem'infrase)
print(frase.find('Programação'))
dividido=frase.split()
print(dividido[0][2])