On 02/04/2012 08:17 AM, Zafrullah Syed wrote:
Hi,
I need urgent help:
I am unable to commit code to svn, I am getting this warning:
*svn: Commit failed (details follow):*
*svn: Commit blocked by pre-commit hook (exit code 1) with output:*
*:17: Warning: 'with' will become a reserved keyword in
Hi,
I need urgent help:
I am unable to commit code to svn, I am getting this warning:
*svn: Commit failed (details follow):*
*svn: Commit blocked by pre-commit hook (exit code 1) with output:*
*:17: Warning: 'with' will become a reserved keyword in Python 2.6*
*writeConf.py:17: invalid syntax*
*
On 11/17/2011 3:26 PM ADRIAN KELLY said...
i know i'm stupid but i have tried everything to get one line of text
working, i have written out pseudo and read every website.
now i am getting this error
Traceback (most recent call last):
File "F:\VTOS ATHLONE\PYTHON_VTOS\foreign exc
def exchange(cash_in):
euro=1
dollar=1.35
base=50
if cash_in>base:
totalreturn=cash_in*dollar
else:
totalreturn=0
return totalreturn
amount=0
# this would be better placed inside the main function.
def main():
while amount<50:
amount = raw_input(
My mail client stripped new lines, at least on this machine, so I will
just top-post this. Sorry!
Your problem is that you say:
amount=0
def main()...
You then try to use amount in main, but main has no amount in it.
Either move "amount=0" inside main, or put a global reference:
amount=0
def main()
i know i'm stupid but i have tried everything to get one line of text working,
i have written out pseudo and read every website.now i am getting this
error
Traceback (most recent call last): File "F:\VTOS ATHLONE\PYTHON_VTOS\foreign
exchange\f_ex4 - Copy.py", line 24, in ma
There's a few things I've noticed:
1. I would recommend using an IDE of some sort. I copy and pasted this into
eclipse, and it told me straight away that you had a parenthesis problem on
this line: d1=(log(s/x)+((r+v**2/2)*t)/(v*sqrt(t))
2. Your function "dividend" isn't returning a value.
3. Un
lim chee siong wrote:
>
>
> Hi,
> I was writing a module for the black-scholes pricing model in python, but I
> keep getting this error message:
> Traceback (most recent call last): File "", line 1, in File
> "C:\Python26\lib\blackscholes.py", line 25d2=d1-v*sqrt(t)
Please COPY A
Hi,
I was writing a module for the black-scholes pricing model in python, but I
keep getting this error message:
Traceback (most recent call last): File "", line 1, in File
"C:\Python26\lib\blackscholes.py", line 25d2=d1-v*sqrt(t)
This is the code in my blackscholes.py file:#Black
On 18-02-11 09:42, lim chee siong wrote:
>
>
> Hi,
>
> I was writing a module for the black-scholes pricing model in python,
> but I keep getting this error message:
>
> Traceback (most recent call last):
> File "", line 1, in
> File "C:\Python26\lib\blackscholes.py", line 25
> d2=d1-v*sqrt(t)
Tha
Please reply to the list not just me. We all participate and learn.
Shumail Siddiqui wrote:
> I know this assignment is not too hard, but I have been greatly
> overwhelmed with work as I have been taking a 19 credits recently. I
> kind of have an approach to this by importing random numbers and
Very good questions indeed. Also familiar ones to me. The first is
Exercise 5.28 and the second is Exercise 5.23 from the text book
"Object-Oriented Programming in Python."
Alan's advice was very sound, but I strongly recommend that you work
with your instructor in guiding you through these prob
Shumail Siddiqui wrote:
> Dear tutor,
> I have a question regarding a functions based assignment.
I agree with Alan.
And I wonder why this assignment is hard for you.
Are you in the wrong course (insufficient prerequisites)?
Is the instructor failing to provide the resources you need?
Are
"Shumail Siddiqui" <[EMAIL PROTECTED]> wrote
> I have a question regarding a functions based assignment. The
> assignment is:
> For this project, you will write two small Python programs:
>
OK, Since this is for homework I cannot give you the answers
but I will point out some things you s
Dear tutor,
I have a question regarding a functions based assignment. The assignment
is:
For this project, you will write two small Python programs:
Investment Thresholds
Define a Python function threshold(dailyGains, goal) that behaves as
follows. The first pa
15 matches
Mail list logo