Hey guys
I am have an syntax error in my python code. I am trying to make a problem on slope intercept equations. This is my first block and I already have problems. When I run the program I get a window saying "there is an error in your program". My code is follows.
Code:
def SIform ():
x(1) = input('enter the x value of the first point: ');
y(1) = input('enter the y value of the first point: ')
#those numbers are the first point i.e. (x,y)
x(2) = input('enter the x value of the second point: ')
y(2) = input('enter the y value of the second point: ')
#these numbers are the second point i.e. (x,y)
M = (y(2) - y(1)) / (x(2) - x(1))
Bookmarks