Skip to content

Ariefah Shalihah

  • Home
  • About

How to check if a variable is a list or a tuple in Python

Use type()

Use isinstance()



how-to-check-if-a-variable-is-a-list-or-a-tuple-in-python

Categories PYTHON
Post navigation
How to check if a variable is a certain type in Python
How to check if a variable is an integer in Python

Recent Posts

  • How asynchronously call methods in Python
  • How get a function name as a string in Python
  • How pretty print a JSON file in Python
ariefahshalihah