Advertisement
Guest User

simplemath.py

a guest
Nov 14th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.11 KB | None | 0 0
  1. n1, n2 = 1, 2
  2. print('%d + %d = %d' %
  3. (n1, n2, n1 + n2))
  4.  
  5. n3 = 4
  6. print('square root of %f is %f' % (n3, n3**0.5))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement