SyntaxFix
Write A Post
Hire A Developer
Questions
Check this handy function:
def gets(*types): return tuple([types[i](val) for i, val in enumerate(raw_input().split(' '))]) # usage: a, b, c = gets(int, float, str)