View Single Post
Old Aug 14th, 2005, 6:00 PM   #5
Sane
Programming Guru
 
Sane's Avatar
 
Join Date: Apr 2005
Location: Waterloo, Ontario
Posts: 1,835
Rep Power: 5 Sane will become famous soon enough
Send a message via MSN to Sane
Holy crap ColdDeath! You're improving quickly!! :eek:

P.S.

Code like this:

print "The date in the Islamic calendar is" , g , "AH"

Can be done with better possibilities like this:

print "The date in the Islamic calendar is %s AH"%( g )

Where %s requests a string, and %d requests an integer. But %s is recommended in all situations even if you have an integer.


And if you are looking to make your program more user friendly, raw_input superceeds input, and then in the condition testing you must make 1 in to "1" or make cal in to str(cal).

Sane is offline   Reply With Quote