Posts by dominion • 1 point
1 post
-
0
votes3
answers872
viewsQ: How to validate if a value is a tuple having a string and an integer?
I want to write a function that takes an argument (any type) and returns true if the argument is a tuple (double elements, double elements of 2), where the first is a name (str) and the second is an…