![]() |
![]() |
![]() |
|||||
![]() |
![]() |
![]() |
![]() |
![]() |
|||
| Welcome
to Tech Support Forum home to more then 136,000 problems solved. Issues
have included: Spyware, Malware, Virus Issues, Windows, Microsoft,
Linux, Networking, Security, Hardware, and Gaming Getting your
problem solved is as easy as: 1. Registering for a free account 2. Asking your question 3. Receiving an answer Registered members: * See fewer ads. * And much more..
|
| Want to know how to post a question? click here | Having problems with spyware and pop-ups? First Steps |
|
|||||||
| Programming A discussion forum for programs and programming used in tech-related businesses. |
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 (permalink) |
|
Registered User
Join Date: Apr 2009
Posts: 34
OS: Red Hat 9/win xp pro
|
[SOLVED] python help!
hey guys its newbiegeek again with more syntax errors. this time its a program made to make slope intercept equations. here is the first block and i already have problems. when i run, i get a window saying, " theres an error in your program:
*** cant assign to function call (C:/directory directory you get the idea) line 2" the code is as 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))
![]() ![]()
|
|
|
| Important Information |
|
Join the #1 Tech Support Forum Today - It's Totally Free!
TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free. Join TechSupportforum.com Today - Click Here |
|
|
#2 (permalink) |
|
Registered User
Join Date: Sep 2009
Posts: 5
OS: winxp
|
Re: python help!
Its been awhile since I have used Python, however I believe you do not need the semi-colon and that may be your problem. I have only needed to use that when using C++. Just as a suggestion because I have had a few problems when trying to do this myself make sure that all of the variables are floating points because you will not be able to divide properly and only get the integer version.
James Weber Small Business IT Support Last edited by dcghelp; 10-27-2009 at 02:51 PM. |
|
|
![]() |
| Thread Tools | |
|
|