Saturday, September 10, 2011

An e for a big elephant

Don't be confused with your e and there e in Python. I merely missed that, and thought to keep a self note.

  1. >>> e = 1.1
  2. >>> print(e * 2)
  3. 2.2
  4. >>> print(1e1)
  5. 10.0
  6. >>> epart1 = "e for big elephant is different from"
  7. >>> epart2 = " e in the middle of two numbers"
  8. >>> epart1 + epart2
  9. 'e for big elephant is different from e in the middle of two numbers'

1 comment:

  1. Hi Sam, I found your blog on google Hall of fame and I felt that I should leave a comment... on your blog .. I am Cyber security student and computer researcher ... I love crypt that's why I decide to write a comment and follow your blog ..nice one

    ReplyDelete