This is what I've been doing, also I'm using version 3.4
set "(operand1 = 2 and operand2 = 7)
print (operand1 = 2)
print (operand2 = 7)
print (result=operand1 + operand2)
print (result=operand2 - operand1)
print (result=operand2 * operand1)
print (result=operand2 / operand1)
print (result=operand2 % operand1)
Traceback (most recent call last):
File "C:/Python34/Assignment3_DanielleSalaz.py", line 1, in <module>
print (operand1 = 2)
TypeError: 'operand1' is an invalid keyword argument for this function
>>>
Sent from my iPhone
> On Jul 11, 2014, at 12:38 PM, William Ray Wing <[email protected]> wrote:
>
>> On Jul 11, 2014, at 1:50 AM, Danielle Salaz <[email protected]> wrote:
>>
>> I'm a noob to Python and cannot figure out how to complete one of my
>> assignments.
>
> Welcome to Python - I’d hope you’ve been monitoring this Tutor list for at
> least a few days -
>
>> I am supposed to use operand1=2 and operand2=7
>> To complete: result= operand1+operand2 etc, but I keep getting invalid
>> syntax either on the " or operand1. Please help
>
> If you have been, you would see that we need to know which version of Python,
> what operating system, and then see a complete copy and paste of the
> traceback and the code you were executing.
>
> In this case, that would be particularly relevant, because it would appear
> that you have typo’d your iPhone e-mail since there is no " character
> anyplace in any of the three assignment statements you have given us. Worse,
> on an iPhone keypad, the “ character isn’t close to anything else you might
> logically have used.
>
> -Bill
>
>
>
>> Sent from my iPhone
>> _______________________________________________
>> Tutor maillist - [email protected]
>> To unsubscribe or change subscription options:
>> https://mail.python.org/mailman/listinfo/tutor
>
_______________________________________________
Tutor maillist - [email protected]
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor