We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fabc91b commit 3fa33b3Copy full SHA for 3fa33b3
ex024.py
@@ -1,10 +1,12 @@
1
+#Checking the first letters of a text
2
#24- Create a program that reads the name of a city and says whether or not it starts with the name 'Saint'.
3
from time import sleep
4
city = str(input('What city were you born?')).strip()
5
print('Has a Saint in the name?)
6
sleep(1)
7
print(city[:5].upper() == 'SAINT')
8
9
+#Verificando as primeiras letras de um texto
10
#024: Crie um programa que leia o nome de uma cidade diga se ela começa ou não com o nome "SANTO".
11
'''cidade = str(input('Digite o nome de uma cidade:')).strip()
12
print('Tem Santo no nome?')
0 commit comments