I am from a Java background. In Java you can print at different levels in most frameworks. For example in log4J, you have log levels which can be set to Debug, Info, warn etc.
Does python have anything similar out of the box? i.e. without having to import another lbrary.
Thanks.
Yep! Have a look at the logging module. Here‘s a tutorial.