Skip to content

Commit 3fa33b3

Browse files
committed
doc: add comments
Exercises manipulating text. Checking the first letters of a text.
1 parent fabc91b commit 3fa33b3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ex024.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1+
#Checking the first letters of a text
12
#24- Create a program that reads the name of a city and says whether or not it starts with the name 'Saint'.
23
from time import sleep
34
city = str(input('What city were you born?')).strip()
45
print('Has a Saint in the name?)
56
sleep(1)
67
print(city[:5].upper() == 'SAINT')
78

9+
#Verificando as primeiras letras de um texto
810
#024: Crie um programa que leia o nome de uma cidade diga se ela começa ou não com o nome "SANTO".
911
'''cidade = str(input('Digite o nome de uma cidade:')).strip()
1012
print('Tem Santo no nome?')

0 commit comments

Comments
 (0)