mercredi 10 février 2021

How to make and if-else statement that classifies the data type of the input you have typed

How can I make an if-else statement that classifies if the data that I have inputted is str, int, or float?

data = input('Enter a data: ')

What will I do next?

Thank you for your help!

Aucun commentaire:

Enregistrer un commentaire