I wrote functions that are applyRules(ch), processString(Oldstr) and named it lsystems.py And I put
import lsystems
def main():
inst = applyRules("F")
print(inst)
main()
and saved it as mainfunctioni
However, when I try to run mainfunctioni, it says 'applyRules' is not defined. Doesn't it work because I put import lsystems?
What should I do to work my mainfunctioni through lsystems?