## Let’s play with Math in Python

In general life there are some mathematical task. and how programming language handling these tasks ?

This tutorial is dedicated to “Chotu”

- + plus
- – minus
- / slash
- * asterisk
- % percent
- < less-than
- > greater-than
- <= less-than-equal
- >= greater-than-equal

# -*- coding: utf-8 -*- print &quot;chotu do you know addition, subtraction, multiplication and division&quot;; print &quot;ok add these numbers 5+6+10&quot;; print 5+6+10 print &quot;Subtract 20 from 90&quot;; print 90-20 print &quot;multiply 4 to 34&quot;; print 4*34 print &quot;divide 12 by 4&quot;; print 12/4

### Some Additional Operation

# -*- coding: utf-8 -*- print &quot;7 divided by 2 equals 3 with a remainder of = &amp;quot;,7%2 print &quot;Is 5 is greater ?&quot;;, 5 &amp;gt; 3 print &quot;Is 5 is greater or equal ?&amp;quot;, 5 &amp;gt;= 4 print &quot;Is 5 is lesser ?&quot;, 5 &amp;lt; 4

__Note__

# -*- coding: utf-8 -*- is used to handling errors related ASCII encodings in Python script

Advertisements