- 
                Notifications
    You must be signed in to change notification settings 
- Fork 1
Accounts example #1
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
base: master
Are you sure you want to change the base?
Conversation
| elif args.subcommand == 'list': | ||
| L1 = ("Date Amount Balance Memo\n" | ||
| "---------- ------- ------- ----") | ||
| print(L1) | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's nothing wrong with what you have here. However, it is a general principle in python that in most places where you could use a variable name you can instead use an expression. This applies particularly to function arguments. You have "L1 = " followed by "print(L1)". You could instead write "print()". That is, the above two lines would become:
print("Date         Amount  Balance  Memo\n"
         "----------  -------  -------  ----")
This is how you will typically see print statements written in Python programs.
| Added several review comments. If you don't get to them before, addressing these would be the perfect thing for those extra hours in your first week, if you in fact have any :) | 
This implements everything in the accounts example specification.