Skip to content

Instantly share code, notes, and snippets.

@jamilnoyda
Last active September 2, 2020 13:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jamilnoyda/354518983245e0f9b9da954d38ed7a94 to your computer and use it in GitHub Desktop.
Save jamilnoyda/354518983245e0f9b9da954d38ed7a94 to your computer and use it in GitHub Desktop.
# 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