My program is supposed to auto-fill (like ms paint) a text file. I cannot figure out why this is giving me an index out of range.
Also my fill function must be recursive, and making the call to neighboring cells in the following order: above,right,below, and left. Better or more efficient ways to do this please let me know(that's if i'm even doing what I want it to be doing).
input(print("..."))doesn't do what you want. It prints the prompt, but then also printsNoneas well. You don't need to useprintin that context,inputprints its argument already.