I need help with making my claculator
Chris Angelico
rosuav at gmail.com
Sat May 20 07:17:13 EDT 2017
On Sat, May 20, 2017 at 9:13 PM, bartc <bc at freeuk.com> wrote:
> 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.)
I don't run arbitrary code. I eyeball it instead.
ChrisA
More information about the Python-list
mailing list