Calculator Problem

Denis McMahon denismfmcmahon at gmail.com
Mon Feb 3 19:41:06 EST 2014


On Mon, 03 Feb 2014 10:25:37 -0800, Charlie Winn wrote:

> Python 3.3.3 (v3.3.3:c3896275c0f6, Nov 18 2013, 21:19:30) [MSC v.1600 64
> bit (AMD64)] on win32 Type "copyright", "credits" or "license()" for
> more information.
>>>> ================================ RESTART
>>>> ================================
>>>> 
> What type of calculation would you like to do?
> (Add, Subtract, Divide or Multiply)a Addition: What are two your
> numbers?
> First Number:5 Second Number:96 Your Final Result is: 101.0 None
>>>>

That wasn't obtained from running the code you posted.

Your code *as you posted it* gives:

$ python charlie.py
  File "charlie.py", line 4
    1 = float(input('First Number:'))
SyntaxError: can't assign to literal
$ 

-- 
Denis McMahon, denismfmcmahon at gmail.com



More information about the Python-list mailing list