Skip to content

Instantly share code, notes, and snippets.

@renan778
Created July 13, 2021 13:41
Show Gist options
  • Save renan778/bcf149e7a05f07a142b9bc903bbaa095 to your computer and use it in GitHub Desktop.
Save renan778/bcf149e7a05f07a142b9bc903bbaa095 to your computer and use it in GitHub Desktop.
Tipos de is
var1 = input('Digite algo: ')
print('O tipo primitivo desse valor é', type(var1))
print('Só tem espaços?', var1.isspace())
print('É um número?', var1.isnumeric())
print('É alfabético?', var1.isalpha())
print('É alfanumérico?', var1.isalnum())
print('Está em maiúsculas?', var1.isupper())
print('Está em minúsculas?', var1.islower())
print('Está capitalizada?', var1.isprintable())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment