How Can We Help?
Introduction:
In this tutorial, we are going to explain how to use Python tuple type function with basic syntax and many examples for better understanding.
Python tuple type() function is used to get the type of tuple by passing tuple variable in type() function.
Syntax:
type(tuple)
Input Parameters:
- tuple: where tuple is a tuple variable whose type needs to be found.
Example
num=(1,2,3,4) print("Type of num: ",type(num))
Output
Type of num: (class ‘tuple’)
In the above Example, ‘type(num)’ is used to get the type of variable ‘num’.
In this tutorial, you have learned how to use type(tuple) function.
If you have an inquiry or doubt don’t hesitate to leave them in comment. we are waiting your feedback.But remember to understand the concept very well, you need to practice more.
Hopefully, it was clear and concise.
Similar Python tuple type Functions:
- Tuples : is a form of data collection where different type of data can be stored and separated by commas(,).
- min(tuple) : It returns a minimum value of tuple.
- max(tuple) : It returns a maximum value of tuple.
- len(tuple) : It returns type of tuple , if passed variable is tuple.
- tuple(seq) : It converts a sequence/string into tuple.
- del(tuple) : It deletes whole tuple or individual tuple element or all elements of tuple.
Python tutorials list:
- Python tutorials list : access all python tutorials.