Hello friends, I have already read some information about the above question on the internet, but I would like to know what are your thoughts about this. I read try-except should be only used if the ‘tried’ code is supposed to work correctly most of the time, otherwise if-else should be used by performance reasons.
I also read which python actually recommend the use of try-excepts; the whole idea of not checking for each error, but instead act as the code is right(unless it gets an exception) is new to me. If you want to know, I discovered about that yesterday; after my game code has already hundreds and hundreds of lines which make use of if-else to handle errors(no try or excepts). Any clarifications about this whole subject is welcome.