Python tidbits

  1. Python Terenary
value_when_true if condition else value_when_false
print "hello" if True else False

Other articles with the same tag

  • Python For Rubyists
  • Python datetime snippets
  • Python datetime snippets
  • Alternate Small Caps Text Using Angular
  • Debugging Flask app with pdb
  • Debugging Flask app with pdb
  • Brand icons using Font-Awesome
  • Prime class to find nth prime
  • Factorials of big numbers
  • Binary to Text Script
  • Back