Jump to content

Beginners help on For Loops


---
 Share

Recommended Posts

I am self-taught on most of my Python knowledge. Through trial and error, and lots of Google I have been able to make things work. I'm to a point where I need to figure out loops. The copy, paste, and replace method is no longer feasible. Due to my limited understanding of Python, I am struggling to make the loops make sense. Essentially what I am trying to do is have a dialog box open, Imput the number of times I want a certain set of functions to loop, and then it to run. Also within the certain set of functions is an export. I am wanting it to loop as well and add a number each time it exports. (Example Export_1 = first time loop ran, Export_2 2nd time loop ran, and so on... I have attached a very basic .py file showing an example of what I'm trying to do. Any help would be appreciated.

TEST.py

Link to comment
Share on other sites

Hi James,

A maybe helping hint:

Try to give your detailed Plan to any chat-KI (f.e. ChatGPT). Usually they spit out a well working code for simple tasks.

Best Regards 

Michael

Link to comment
Share on other sites

 Share

×
×
  • Create New...