Advertisement
Guest User

Untitled

a guest
Sep 2nd, 2014
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.15 KB | None | 0 0
  1. >>> a = complex(2, 3)
  2. >>> a
  3. (2+3j)
  4. >>> type(a)
  5. <type 'complex'>
  6. >>> b = complex(3, 4)
  7. >>> b
  8. (3+4j)
  9. >>> type(b)
  10. <type 'complex'>
  11. >>> a + b
  12. (5+7j)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement