Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- valor_1 = 7
- print(type(valor_1))
- valor_2 = 'Dostoevsky'
- print(type(valor_2))
- # Comprueba si un valor es de una instancia
- # particular:
- print(isinstance(valor_2, str))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement