[Tutor] how do I set variables in Python 3.4

Danielle Salaz danieshari at gmail.com
Sun Jul 13 09:26:50 CEST 2014


I am using idle

Sent from my iPhone

> On Jul 11, 2014, at 1:50 PM, Alan Gauld <alan.gauld at btinternet.com> wrote:
> 
>> On 11/07/14 06:50, Danielle Salaz wrote:
>> I'm a noob to Python and cannot figure out how to complete one of my assignments.
>> 
>> I am supposed to use operand1=2 and operand2=7
>> To complete: result= operand1+operand2 etc, but
> 
> We need more detail.
> 
> How are you entering your code? Is it using a tool like
> IDLE or an operating system console version of python?
> 
> Are you typing at the interactive python prompt,
> usually looking like
> >>>
> 
> > I keep getting invalid syntax either on the " or operand1.
> 
> Please post the exact code you entered and the
> full error message, do not summarize.
> 
> There is no " in the little bit code you posted.
> And operand1 appears twice.
> We need to see exactly what you are doing - what you
> typed, and what Python told you was wrong.
> 
> -- 
> Alan G
> Author of the Learn to Program web site
> http://www.alan-g.me.uk/
> http://www.flickr.com/photos/alangauldphotos
> 
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> To unsubscribe or change subscription options:
> https://mail.python.org/mailman/listinfo/tutor


More information about the Tutor mailing list