Python Forum
Increasing depth in python
Thread Rating:
  • 2 Vote(s) - 3.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Increasing depth in python
#1
Hello everyone.

Im trying to make a smart way to using fractals and i have been searching a bit around without any advice on my topic.

Well it's basicly about applying One Rule.

It looks like this:

start F
rule F -> F L F R F L F

i got the main ideer of it that when it reads F it should write F L F R F L F and then add it to the "result".

My only problem is that im not the best programmer and therefore i don't know how i should proceed to write it into python.

it should read the list, then replace F with F L F R F L F ever time it finds it when it searching the list. In the end it should give a output where the whole result is printed.

list, tuples etc?

Best regards Malling
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,831 Sep-26-2020, 03:07 PM
Last Post: deanhystad
  Digits increasing meknowsnothing 6 4,117 Feb-17-2019, 11:22 AM
Last Post: scidam
  Increasing difficulty of a maths game Maxxy_Gray 1 3,200 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