What is type () in Python give an example?

Python has a built-in function called type() that helps you find the class type of the variable given as input . For example, if the input is a string, you will get the output as <class ‘str’>, for the list, it will be <class ‘list’>, etc.26 Şub 2022

Sizin İçin Seçtik  What is the difference between a class and an instance?

Leave a Reply

Your email address will not be published. Required fields are marked *