To break the loop on empty input, use
while True:
x_str = raw_input('Enter Start,Stop,Increment: ')
if not x_str:
break
else:
...
edit: where is indention in your code ? Configure your editor to indent with 4 spaces when you hit the tab key.
Gribouillis
Posting Maven
3,101 posts since Jul 2008
Reputation Points: 1,130
Solved Threads: 761
Skill Endorsements: 11
Question Answered as of 1 Year Ago by
Gribouillis Your code indention is completely lost.
pyTony
pyMod
6,330 posts since Apr 2010
Reputation Points: 879
Solved Threads: 989
Skill Endorsements: 27