Issues with Python

2017-07-30 Thread Ode Idoko via Python-list
Hi, I am new to Python and though I have been able to download the 3.6 version 
on my laptop , I still have issues with the syntax. While writing a program to 
execute, it will display syntax error with different shades of color usually 
green or yellow. 
What can I do about this? How do I know the error and effect it? Can't it be 
programmed like we have in excel that will tell you error and prompt you if you 
wish to accept the right formula format? 
Please I need more information on this. 
Thanks. 
Ode 

Sent from my iPhone
-- 
https://mail.python.org/mailman/listinfo/python-list


Code for addition

2017-08-04 Thread Ode Idoko via Python-list
Can anyone help with the python code that can add 101, 102, 103...2033 please? 
As I said before, I'm new to python and need assistance in this regard. 
Thanks for always assisting. 

Sent from my iPhone
-- 
https://mail.python.org/mailman/listinfo/python-list


Exponential Smoothing program

2017-08-31 Thread Ode Idoko via Python-list

I am running a master degree programme and very new to programming including 
python. I have been given a project to write a python program on exponential 
smoothing of some selected stocks. The program should user the user to input 
alpha, display the graph of the original data and "smoothed data".

On the same python program, I am to develop a linear regression model to 
predict the next period, showing correlation coefficients to indicate the 
strength of the model.

I have been able to write a program which returns some values but no graph and 
also having difficulties with the linear regression.

This is the program I wrote:

def exponential_smoothing (a,y,f):
    ans = (a*y) + (1-a) * f
    return ans

print ("Exponential_Smoothing Program")
a = float(input("please enter a: "))
y = float(input("please enter y: "))
f = float(input("please enter f: "))
ans = exponential_smoothing (a,y,f)
print ("the answers are %.2f" %(ans)) 

Could someone kindly help with tips on how to go about this?

Thanks.



Ode A. IDOKO

... writer, author and consultant


[email protected]
+2347064334855
Author of:
"Putting Your Talent to Work"
Click link below to view book.

http://www.authorhouse.co.uk/Bookstore/BookDetail.aspx?BookId=SKU-000425821

 ...let God alone be true and all men liars!
-- 
https://mail.python.org/mailman/listinfo/python-list