Using the Maths symbols learned in python

# We are using Maths symbols learnt from extra2.py in here
# For readability always do well to space your scripts.
# It makes it looks nice 🙂
# Or rather neat we should say 🙂

print “I will now count my chickens:”

print “Hens”, 25 + 30 / 6
print “Roosters”, 100 -25 * 3 % 4

print “Now I will count the eggs:”

print 3 + 2 + 1 – 5 + 4 % 2 -1 / 4 + 6

print “Is it true that 3 + 2 < 5 – 7?"

print 3 + 2 -2

print “Is it greater or equal?”, 5 >= -2
print “Is it less or equal?”, 5 7 – 1″
print 4 + 2 > 7 – 1

# Lets do some Maths, a calculator actually in python
# Shall we?

print “1 + 1 =”, 1 + 1
print “2 + 2 =”, 2 + 2
print “3 + 3 =”, 3 + 3
print “4 + 4 =”, 4 + 4
print “5 + 5 =”, 5 + 5
print “Hello World”

Have your say

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s