HomePython How to get the type of a variable in python byAdmin •December 07, 2022 0 We can get or detect the type of a variable using python type() function. See the bellow code x = 5y = "python"print(type(x))print(type(y)) Tags: Python Facebook Twitter