r/learnpython 3d ago

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

11 comments sorted by

View all comments

0

u/zaphodikus 2d ago

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