Logo

Programming-Idioms

History of Idiom 94 > diff from v40 to v41

Edit summary for version 41 by John:
New Python implementation by user [John]

Version 40

2019-09-27, 09:10:29

Version 41

2019-11-01, 08:06:25

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
print(type(x))