IHYPRESS.NET
PYTHON
HOME | ASP | C | CSS | HTML | JAVASCRIPT | PERL | PHP | PYTHON | RUBY | SVG
Python (CGI Programming) ❯ Numerical Expressions
<03>
#!/usr/bin/python print 'Content-type: text/html\n\n'; print "<div style='font-size:1.3em;color:DarkGreen;'>" n = 2 + 4 + 6 + 8 n /= 5 m = 2 * 3 * 4 m -= n o = m % 3 + (n * n + 5.0) / m print 'The value of m is: %s <br>' % m print 'The value of n is: %s <br>' % n print 'The value of o is: %s <br>' % o print "</div>"
The value of m is: 20
The value of n is: 4
The value of o is: 3.05
COPYRIGHT © 2015-2024 IHYPRESS.NET. A DIVISION OF IHY PRESS. ALL RIGHTS RESERVED.