Logo

Programming-Idioms

History of Idiom 94 > diff from v45 to v46

Edit summary for version 46 by programming-idioms.org:
Admin deletes impl 3800: Dupe of impl 1101

Version 45

2020-03-16, 22:09:52

Version 46

2020-03-16, 22:10:33

Idiom #94 Print type of variable

Print the name of the type of x. Explain if it is a static type or dynamic type.

This may not make sense in all languages.

Idiom #94 Print type of variable

Print the name of the type of x. Explain if it is a static type or dynamic type.

This may not make sense in all languages.

Code
x = ""
print(type(x))