943,096 Members | Top Members by Rank

Ad:
  • Python Discussion Thread
  • Unsolved
  • Views: 288
  • Python RSS
Feb 7th, 2010
0

Python programing help

Expand Post »
how can i change this string:

"f(x)= x + 2-3\nbox = f(2) + 2\nbox = f(f(2)) + 2\nfunc = 3 + 3 * 4


to:

"box = 1 + 2\nbox = 0 + 2\nfunc = 3 + 3 * 4\n"


or tell me the algorithm to make this happen, i will try to figure it out.....plz, thanks alot, ihave been spending alot of time on this already...
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
sosdown is offline Offline
2 posts
since Feb 2010
Feb 7th, 2010
0
Re: Python programing help
plz help, waiting anxiously....................
Reputation Points: 10
Solved Threads: 0
Newbie Poster
sosdown is offline Offline
2 posts
since Feb 2010
Feb 7th, 2010
0
Re: Python programing help
We will only help those who show some effort!
In other words, show us some Python code you have tried to solve your problem.

The problem is real easy to solve, hint ...
Python Syntax (Toggle Plain Text)
  1. # "f(x)= x + 2 - 3" implies the function below
  2.  
  3. def f(x):
  4. return x + 2 - 3
Moderator
Reputation Points: 1333
Solved Threads: 1403
DaniWeb's Hypocrite
vegaseat is offline Offline
5,789 posts
since Oct 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Python Forum Timeline: Changing the colour/HSV of a pixmap/pixbuf with a slider?
Next Thread in Python Forum Timeline: creating symbolic link using os.symlink()





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC