|
1 | | -# Faça um programa que leia algo pelo teclado e mostre na tela o seu tipo primitivo e todas as |
2 | | -# informações possíveis sobre ele. |
3 | | -a = input('Digite algo:') |
4 | | -print('O tipo primitivo desse valor é:', type(a)) |
5 | | -print('É alfabetico?', a.isalpha()) |
6 | | -print('É numerico?', a.isalnum()) |
7 | | -print('Só tem espaços?', a.isspace()) |
8 | | -print('É alfanumerico?', a.isalnum()) |
9 | | -print('Está em maiúsculo?', a.isupper()) |
10 | | -print('Esta em minúsculo?', a.islower()) |
11 | | -print('Esta só com a primeira letra em maiúsculo?', a.istitle()) |
| 1 | +# Write a program that reads something from the keyboard and shows its primitive type and all the |
| 2 | +# possible information about him. |
| 3 | +value = input('Type something:') |
| 4 | +print('The primitive type of this value is:', type(value)) |
| 5 | +print('Is alphabetical?', value.isalpha()) |
| 6 | +print('Is a number?', value.isalnum()) |
| 7 | +print('There are only spaces?', value.isspace()) |
| 8 | +print('Is alphanumeric?', value.isalnum()) |
| 9 | +print('Is upper?', value.isupper()) |
| 10 | +print('is lower?', value.islower()) |
| 11 | +print('Only the first letter is capitalized?', value.istitle()) |
0 commit comments