wesm / pydata-book

Materials and IPython notebooks for "Python for Data Analysis" by Wes McKinney, published by O'Reilly Media
Other
22.27k stars 15.19k forks source link

In end of chapter 2, Ternery operator code is not given #184

Closed AnCyNitinChaudhary closed 1 year ago

AnCyNitinChaudhary commented 1 year ago

Please include below code as an example if possible-

temp='nitin' if(3>5) else 'chaudhary' print(temp)

Output: chaudhary

wesm commented 1 year ago

I removed the "expr if expr else expr" piece from the 3rd edition