Logo

Programming-Idioms

History of Idiom 94 > diff from v43 to v44

Edit summary for version 44 by hello:
New Python implementation by user [hello]

Version 43

2020-01-05, 10:54:29

Version 44

2020-03-01, 04:00:55

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))