Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
slope intercept form
#1
Hi,

I am working on trying to write a program to convert any form of the slope intercept equation into the standard, y=mx+b form. I always have a hard time keeping track of negative an positive values and want to be able to have the computer do some of the conversion. I am wondering what you link of my code so far?

 # y = mx+b
slopeintercept = ['y', 'm','x','b']
print(slopeintercept)
print(slopeintercept[0])
message = f'{slopeintercept[0]}={slopeintercept[1]}{slopeintercept[2]}+{slopeintercept[3]}'
print(message)   
Output:
['y', 'm', 'x', 'b'] y y=mx+b [Finished in 0.3s]
Reply


Messages In This Thread
slope intercept form - by Dasiey12 - Jun-14-2020, 12:31 AM
RE: slope intercept form - by SheeppOSU - Jun-14-2020, 12:41 AM
RE: slope intercept form - by ibreeden - Jun-14-2020, 08:36 AM
RE: slope intercept form - by buran - Jun-14-2020, 08:57 AM
RE: slope intercept form - by ibreeden - Jun-14-2020, 03:21 PM
RE: slope intercept form - by Dasiey12 - Jun-14-2020, 05:09 PM
RE: slope intercept form - by SheeppOSU - Jun-14-2020, 06:34 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  problem about slope in python script for bitcoin trading fisher_garry 1 2,556 Sep-02-2020, 01:39 PM
Last Post: fisher_garry
  How to intercept python method calls? DineshBhat 0 2,548 Jul-15-2019, 03:46 AM
Last Post: DineshBhat

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020