Last active
September 2, 2020 13:14
-
-
Save jamilnoyda/354518983245e0f9b9da954d38ed7a94 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# good bad dict | |
context={"first_name": user.first_name.capitalize(),"company": g.user.get_company_name,"last_name": g.user.last_name.capitalize(),"username": user.username,"password": password} | |
# difficult to debug and difficult to find a bug | |
# good dict | |
context = { | |
"first_name": user.first_name.capitalize(), | |
"company": g.user.get_company_name, | |
"last_name": g.user.last_name.capitalize(), | |
"username": user.username, | |
# "email": user.email, | |
"password": password, | |
} | |
""" best thing about this, you can comment code easily! same goes | |
with tuple and list""" | |
""" code that runs without compiling because you would have a clear picture | |
in front of you what you have written that will save your time and energy.""" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment