Re: [Tutor] how do I set variables in Python 3.4

2014-07-14 Thread wesley chun
Greetings Danielle, Welcome to programming! Thanks for the additional clarification as to what your project is. Starting from scratch isn't easy, but with a little bit of guidance, you'll soon be able to "drive on your own!" In the course you're taking, can you share a bit about what resources yo

Re: [Tutor] how do I set variables in Python 3.4

2014-07-14 Thread Danielle Salaz
This is the assignment: Write a Python script as follows: Use 3 variables named: operand1 operand2 result Set operand1 = 2 and operand2 = 7. Evaluate the following expressions and produce the output as shown: result = operand1 + operand2 result = operand2 – operand1

Re: [Tutor] how do I set variables in Python 3.4

2014-07-13 Thread Danny Yoo
On Sun, Jul 13, 2014 at 12:25 AM, Danielle Salaz wrote: > 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=operan

Re: [Tutor] how do I set variables in Python 3.4

2014-07-13 Thread Alan Gauld
On 13/07/14 08:25, Danielle Salaz wrote: This is what I've been doing, also I'm using version 3.4 set "(operand1 = 2 and operand2 = 7) Do you by any chance have some Lisp or Scheme experience? That looks like a Lispy kind of syntax... Whatever, in Python you don't need to use words like set o

Re: [Tutor] how do I set variables in Python 3.4

2014-07-13 Thread Danielle Salaz
I am using idle Sent from my iPhone > On Jul 11, 2014, at 1:50 PM, Alan Gauld 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: resul

Re: [Tutor] how do I set variables in Python 3.4

2014-07-13 Thread Danielle Salaz
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

Re: [Tutor] how do I set variables in Python 3.4

2014-07-12 Thread Steven D'Aprano
Hi Danielle, and welcome. Others have already replied to your post, and I'm going to reply with pretty much the same answer: Please help us to help you! We're not mind-readers, we need to see the actual error messages you get, and your actual code, not just a rough paraphrase of it. When Pyth

Re: [Tutor] how do I set variables in Python 3.4

2014-07-11 Thread Alan Gauld
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 li

Re: [Tutor] how do I set variables in Python 3.4

2014-07-11 Thread William Ray Wing
On Jul 11, 2014, at 1:50 AM, Danielle Salaz 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 com

Re: [Tutor] how do I set variables in Python 3.4

2014-07-11 Thread Mark Lawrence
On 11/07/2014 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 I keep getting invalid syntax either on the " or operand1. Please help

Re: [Tutor] how do I set variables in Python 3.4

2014-07-11 Thread Danny Yoo
> 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 Unfortunately, you've paraphrased the error message enough that we can not reproduce the problem. Since you're emailing on

[Tutor] how do I set variables in Python 3.4

2014-07-11 Thread Danielle Salaz
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 I keep getting invalid syntax either on the " or operand1. Please help Sent from my iPhone _