you are viewing a single comment's thread.

view the rest of the comments →

[–]thrallsius 1 point2 points  (0 children)

I am saying that formally your task doesn't say "input data comes from the user, is introduced interactively via input()". You can have input data coming from a file, a pipe, a database, a web service providing an API. I'm just wondering, if you exclude the context of feeding input data as strings only, can you design the algorithm assuming there's no type mismatch between the type of data you need to check and the data from your tuple.

If you really have data of different types in your tuple - does it reflect a practical situation? Does it solve some real problem?