Mamstricks Python
Sunday, 25 January 2015
python 3.4.2 Part 3 maths tutorial
To Add two number simply type
5+8
To Subtract
5-9
To Divide
8/3
To Mutiplication
8*9
To get power of X^n
eg: 2^50
2**50
or
pow(2,50)
Now check these examples
1.8/3
2.8//3 (check the decimals)
3.3+4+5*9+8/4 (order is PEMDAS, if you dont know this check it google)
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment