Topic: New to Python, Ready to Code

I have finally began using Python(before, using other languages) because Python seems like such a powerful programming language. I am excited to meet the community, and I hope I can do a few cool things in this language.

I am read to code.

I am even working on a linear slopes equation program. Here is the code:

def SOLVE():
    x1 = input('Enter x1: ');
    x2 = input('Enter x2: ');
    y1 = input('Enter y1: ');
    y2 = input('Enter y2: ');
    xgiven = input('Enter given x: ');
    top = y2 - y1;
    bottom = x2 - x1;
    m = (top / bottom);
    y = m*xgiven + y2 ;
    print 'Y is equal to ', y;

Thumbs up

Re: New to Python, Ready to Code

Thats not bad. Except you shouldn't really use input for collecting numbers in python2. You should use int(raw_input())

Thumbs up