samedi 11 mai 2019

Python do if something will not cause an error

I am programming a project, and I need to check if a certain index exists. I was wondering if there was a way to do this using the python if statement. I was thinking along the lines of: if list[100].will_not_cause_error: any help would be appreciated!

Aucun commentaire:

Enregistrer un commentaire