Created
July 25, 2023 13:24
-
-
Save paulodutra/be01f118fec6a70ea95b89626829cbe5 to your computer and use it in GitHub Desktop.
Second example using count logic
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
count = 0 | |
for c in range(1,7): | |
letter = str(input('Digite a primeira {} vogal: '.format(c))) | |
if letter == 'A' or letter == 'a': | |
count = count + 1 | |
print('Você informou a vogal A {} vezes'.format(count)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment