February 2012 S M T W T F S « Oct 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 Categories
-
Recent Posts
Recent Comments
- Fabio Utzig on propertypp: Objective-C-like properties for C++ classes
- Fabio Utzig on Two Conclusions
- Fabio Utzig on Two Conclusions
- Mauricio Berni on Two Conclusions
- Fabio Mierlo on My trip to Seattle for the Amazon.com SDE interview
Archives
Category Archives: Python
Ternary operator in Python
Here’s how you translate the following C code int max(int a, int b) { return (a > b ? a : b); } to Python: def max(a, b): return a if a > b else b The general syntax is: … Continue reading
Posted in English, Programming, Python
Leave a comment
