![]() |
|
[Python] Basic For Loop Question - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [Python] Basic For Loop Question (/showthread.php?tid=5798942) |
Basic For Loop Question - A!DS - Feb 12, 2018 This is a pretty basic question but I need it for my homework can't seem to figure it out. I am trying to create a for loop which will print a function that has been already defined, 'i' number of times. However I can't figure out the exact way to write the code. The function I have defined is called 'row'. This is the code I have for the for loop, but obviously something is wrong. There are some parameters, but I don't think those effect the issue I am having. If someone can just point me in the right direction it will help a ton. Code def grid(p, numofboxes, x, y, size, numofrows): |