You can use type () function to print the data type of a variable.
score = 95
You can use .dtypes to print the data types of all the columns of a dataframe.
#to find datatypes of all columns
If you wish to learn Python from an online course, then enroll in this Python Course by Intellipaat provides instructor-led training, lifetime access, certification, and job assistance.