dimanche 8 février 2015

If conditional that checks on variable type (int, float, ect)

Python3: I wish to know if I can set up an if statement to execute some code just like one normally would.


But I want the statement to go something like this: (psudo-code)



If variable1 !== "variable type integer":
then break.


Is this possible? Thanks for the help.


I apologize if this has already been addressed, but the search suggester bot didn't have any posts to point me to.


Jesse, NOOb


Aucun commentaire:

Enregistrer un commentaire