Tipo de valor

Published by NoisNette in

Crea una función que tome un valor como argumento y devuelva el tipo de este valor.

Ejemplos

get_type(1) ➞ "int"

get_type("a") ➞ "str"

get_type(True) ➞ "bool"

get_type([]) ➞ "list"

get_type(None) ➞ "NoneType"

Notas

N/A