Tipo de valor

Published by Mubashir Hassan 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([]) ➞ "array"

Notas

N/A