a +b ?

Mark Leander mark.leander at topicbranch.net
Mon Jun 14 06:47:21 EDT 2010


(pytyhon 2.x code):
print input('Enter expression: ')



Example uses:
Enter expression: 3+4
7
Enter expression: 1+2+3+4+5
15
Enter expression: 7*18
126
Enter expression: 2**19-1
524287




More information about the Python-list mailing list