It depends on what it is, whether zipped or .py file. Most are limited to 500KB-1MB. I think if you are going to post a single source file, you should just post the code in code tags, if it is too big then instead post a link to the repo.
There is a maximum number of characters you can post, although quite high, is for stopping someone posting a massive post, etc. I have exceeded this amount on my tutorial posts by having large code in the posts which is why some of my tutorials are split into part1 part2, etc. I think if you come to that point, you should just post a link.
Or if you have multiple files that require you to label each code's filename or just upload multiple files here, etc. makes it a pain in the ass, and is much easier to just download a repo.
For general help though it should be under 15 lines anyways, not your whole program.
There is a maximum number of characters you can post, although quite high, is for stopping someone posting a massive post, etc. I have exceeded this amount on my tutorial posts by having large code in the posts which is why some of my tutorials are split into part1 part2, etc. I think if you come to that point, you should just post a link.
Or if you have multiple files that require you to label each code's filename or just upload multiple files here, etc. makes it a pain in the ass, and is much easier to just download a repo.
For general help though it should be under 15 lines anyways, not your whole program.
Recommended Tutorials: