Reputation: 401
I am very new to programming and using Learn Python The Hard Way. I'm using Sublime Text 2 and haven't had any problems yet. Normally to comment I will hit tab a few times after the line of code to line up the comments on the right. It always works except for the following line.
print "OR, we can use variables from our script:"
amount_of_cheese = 10
amount_of_crackers = 50
When I hit tab after amount_of_cheese = 10
it just adds zeros. I hit tab twice and it became
amount_of_cheese = 1000
If I keep hitting tab it will delete the last 0 and so on switching from 100 to 1000.
Every other line tabs out fine after the code.
I'm sure this is basic but it is just strange. What's the problem?
Upvotes: 2
Views: 95
Reputation: 1773
I just tested this out. If you have the numbers 100 or 1000 somewhere else in your file, then typing 10 then TAB is going to act like tab completion. If you type a space then tab it should work.
Upvotes: 3