Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • \$\begingroup\$ Could you provide an ungolfed example of your script? \$\endgroup\$ Commented Mar 23, 2011 at 4:43
  • \$\begingroup\$ Can we use * for parsing inputs of the form 4545 78? \$\endgroup\$ Commented Mar 23, 2011 at 14:27
  • \$\begingroup\$ Unfortunately, no, but it's not * that's the issue. 4545 78 isn't a valid Python expression, so input() will raise a SyntaxError. This trick depends entirely on the problem asking for x,y. If you had a function that read x y and returned a tuple, then you could use * with that just fine. \$\endgroup\$ Commented Mar 23, 2011 at 16:52