About Infix and Postfix
In an expression if the operators are placed between the operands, it is known as infix notation ( eg A+B) . On the other hand if the operators are placed after the operands then the expression is in postfix notation .( eg AB+)
Infix Notation Postfix Notation
(A-C)*B [...]
Posts Tagged ‘Python’
Infix To Postfix conversion in python
Posted in Uncategorized, tagged conversion, infix, postfix, Python, stack on September 22, 2009 | 3 Comments »
How to make IRC bot in python? – my first post in Tuxopia
Posted in Howtos, tagged bot, how-to, irc, Python, socket on September 1, 2009 | 2 Comments »
My first post in tuxopia is a how-to for writing basic IRC bot in python.Thought of sharing the link here
Weather Info Utility in Python
Posted in My_Works, tagged google api, Python, urllib2, weather, xml on July 21, 2009 | 2 Comments »
Here is a script to provide weather information of a city with the help of google api.
#!/usr/bin/python
#Rag Sagar <ragsagar @gmail.com>
#Free to copy, modify and redistribute
import sys
from urllib2 import urlopen, URLError
from xml.sax import make_parser
from xml.sax.handler import ContentHandler
class WeatherFinder(ContentHandler):
"""the handler class"""
def __init__(self):
self.weather_list = []
self.go_on = False
def startElement(self, tag, attrs):
"handles the opening tags"
if tag == ‘current_conditions’:
self.go_on = True
if [...]

