-
Notifications
You must be signed in to change notification settings - Fork 618
I made a new program using your tutorial and it doesnt seem to work! #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Yeah, you need to add 4 spaces before each line if you paste code in GitHub. Your code is pretty hard to read right now. See Good and bad variable names (it also applies to functions, so |
Looking at your code a bit more the file stuff has things like Another problem is that you're comparing strings with numbers. See the last example here. By the way, it's normal to have problems with your code :) Most of the programs I write don't work on the first try either, and that's what the error messages are for. |
Thank you very much @Akuli for your useful insight I have made all the changes required and also realized that many lines of code were useless.... here's an edited version |
Great :) Now it's easier to find problems:
Here you're confusing the file object from I recommend coming to this free help chat. You don't need to register or anything, just click the link, choose a name and you're ready to go. I'm Akuli there too, so hopefully we can talk there and get things to work :) There are also many other skilled people ready to help you if I'm not there. |
You haven't said anything to me in over a year, so I guess you are not working on this program anymore. |
The program is meant to function as a diary:
The file usr.txt has line 3 as "defusr" and line 4 as "123"
The code is located on http://dpaste.com/1Q0BQGC.txt as GitHub does not seem to recognize proper indentation.
The text was updated successfully, but these errors were encountered: