Python Forum
Increasing depth in python
Thread Rating:
  • 2 Vote(s) - 3.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Increasing depth in python
#13
def step(rules, state):
   for rule in rules:
       state=rule(state)
    return state
it's not correctly written here i see.... i need the tabs but they are there in my python file.
I get an error saying "Error: 'str' object is not callable."
Should i use global because that doesn't seem to work either.
Reply


Messages In This Thread
Fractals in python using fdl - by malling - Oct-20-2016, 11:06 AM
RE: Increasing depth in python - by malling - Oct-20-2016, 06:44 PM
RE: Increasing depth in python - by nilamo - Oct-20-2016, 06:48 PM
RE: Increasing depth in python - by malling - Oct-20-2016, 07:30 PM
RE: Increasing depth in python - by nilamo - Oct-20-2016, 07:48 PM
RE: Increasing depth in python - by malling - Oct-20-2016, 07:51 PM
RE: Increasing depth in python - by sparkz_alot - Oct-20-2016, 08:01 PM
RE: Increasing depth in python - by nilamo - Oct-20-2016, 08:01 PM
RE: Increasing depth in python - by malling - Oct-20-2016, 08:08 PM
RE: Increasing depth in python - by nilamo - Oct-20-2016, 08:48 PM
RE: Increasing depth in python - by malling - Oct-20-2016, 08:53 PM
RE: Increasing depth in python - by nilamo - Oct-20-2016, 09:50 PM
RE: Increasing depth in python - by malling - Oct-20-2016, 10:43 PM
RE: Fractals in python using fdl - by Yoriz - Oct-20-2016, 12:27 PM
RE: Fractals in python using fdl - by malling - Oct-20-2016, 04:10 PM
Increasing depth in python - by malling - Oct-20-2016, 04:21 PM
RE: Increasing depth in python - by nilamo - Oct-20-2016, 04:45 PM
RE: Increasing depth in python - by malling - Oct-20-2016, 05:24 PM
RE: Increasing depth in python - by nilamo - Oct-20-2016, 05:38 PM
RE: Fractals in python using fdl - by metulburr - Oct-20-2016, 05:37 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  "RecursionError: maximum recursion depth exceeded in comparison" hhydration 1 1,851 Sep-26-2020, 03:07 PM
Last Post: deanhystad
  Digits increasing meknowsnothing 6 4,160 Feb-17-2019, 11:22 AM
Last Post: scidam
  Increasing difficulty of a maths game Maxxy_Gray 1 3,223 Apr-04-2018, 03:00 PM
Last Post: sparkz_alot

Forum Jump:

User Panel Messages

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