I need help with making my claculator

bartc bc at freeuk.com
Sat May 20 07:13:30 EDT 2017


On 20/05/2017 03:10, Chris Angelico wrote:
> On Sat, May 20, 2017 at 11:40 AM,  <gareths2017 at cardensv.com> wrote:
>> def calc(self, display):
>>     try:
>>         display.set(eval(display.get()))
>>     except:
>>         display.set("Type an actual equation please!")
>
> Without any specific questions, you're not going to get anything more
> than a basic eyeballing of the code.

Try running the program.

(I did that but I can't follow this style of coding so can't help.)

-- 
bartc



More information about the Python-list mailing list