[Tutor] python arthematics

2012-03-22 Thread Sukhpreet Sdhu
i want to write a program that reads simple arithematic epressions and calculates the result. for example input "1*3+2" should generate "5'" as result___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.pytho

[Tutor] python sorting

2012-03-22 Thread Sukhpreet Sdhu
i want to sort the list formed by two variable taken as raw_input().i have written following code; a=raw_input() b=raw_input() c=a+b list=c.split() how i can sort the list formed___ Tutor maillist - Tutor@python.org To unsubscribe or change subscriptio

[Tutor] roman to arabic

2012-02-26 Thread Sukhpreet Sdhu
Hi I just wrote python code to convert roman to arabic numerals, but its not working. Can you just check where the problem is and way to correct that. So here is my python code import string print "Welcome to the numeric conversion program" print "Please enter command" data=raw_input() now = 0 pre

[Tutor] Python assginment

2012-02-21 Thread Sukhpreet Sdhu
hi i m working on Python assignment to convert roman numericals to arabic and vice versa.I had tried many different codes but those are not working. Can you please suggest me the code to do this by using while , if and else statements. thanks Sukhpreet Sidhu___