Posts by Thiago Arruda • 33 points
2 posts
-
3
votes1
answer71
viewsQ: Is there a better way to group "Ors" in Python without having to type the variable all the time?
Example: letra = input('Digite uma letra: ') if(letra == 'a' or letra == 'e' or letra == 'i' or letra == 'o' or letra == 'u'): print('Vogal')…
-
-3
votes2
answers129
viewsQ: Read an integer greater than 0 and return the sum between the numbers that compose it in Python
Could someone give me a light on how to make a code, in Python, that reads an integer number greater than 0 typed by the user and add the numbers that make up it? Ex: User type 129 Program returns…