Skip to content

Conversation

@haobug
Copy link

@haobug haobug commented Aug 15, 2015

for detail explain see #315

if tools.checkIsInt(num) and 1 <= int(num) <= total:
return listItems[int(num) - 1]
if num == '0':
if num == '0' or num == 'q':
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use num (number) for q?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just lazily reused that variable since it holds the raw input

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants