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\$ You don't need the indentation after if x==1:, also why not just do if x:? \$\endgroup\$ Commented Jul 9, 2018 at 20:24
  • \$\begingroup\$ @W W yeah I changed it. Also very late. \$\endgroup\$ Commented Jul 23, 2018 at 13:01
  • 2
    \$\begingroup\$ Change int(raw_input) to input() because Python 2's eval converts it automatically to int. \$\endgroup\$ Commented Jan 12, 2019 at 0:26