i was always taught put the variables u plan on using in a function at the top of it!
im curious if it's considered bad programming practice to only define variables when they are going to be used/need to be used....for example possibly midway or further into a function?