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