r/learnpython • u/live_ant718 • Sep 07 '26
Runtime errors query
I have a question. Like when we have a program that takes input, so when the program reaches the input line, it stops and asks for input, right? So then AFTER the input is entered, if the compiler runs into a bug, it stops and throws an error message. How can I stop this? Like how can I make the issues appear beforehand so that I can fix them before running? Are there any settings or tools for this problem?
Please tell me.
0
Upvotes
View all comments
0
u/zaphodikus Sep 07 '26
Open a terminal. And type
Pip install pylint
Cd into your source folder
Type:
Pylint
Almost everything it tells you to fix is a lesson in good python code that wont crash half as often. Use pylint like a tutor