wesm / pydata-book

Materials and IPython notebooks for "Python for Data Analysis" by Wes McKinney, published by O'Reilly Media

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

AnCyNitinChaudhary opened this issue · comments

Please include below code as an example if possible-

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

Output:
chaudhary

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