Jika tipe adalah string python
isinstance(s, str)
Fair Fly
isinstance(s, str)
# Method 1
isinstance(variable, str)
# Method 2
type(variable) == str