pythonHow to get type of object
Usage example
obj = 'hi'
print(type(obj))
output
<class 'str'>
More of Python
- One-liner if else
- Remove duplicate lines from text file
- Combine 2 csv files using ID column
- Combine multiple txt files into one
- How to swap two variables values
- One-liner calculator
- How to get hour from datetime
- How to validate xml
- How to get minutes from datetime
- How to check if object is of certain type
See more codes...