Hacker News new | past | comments | ask | show | jobs | submit login

I don't have Python3 handy, but in Python2 I do this:

  >>> answer = 1 + 1
  >>> answer
  2
Doesn't Python3 work the same way?

In any case, my PYTHONSTARTUP has this line:

  from pprint import pprint as pp
and I find pp() very nice for printing various structures.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: