Avatar ·

Comment créer une calculatrice console en Python ?

📁 Sujets avancés sur Python

Je veux créer une calculatrice en Python. Quand je cherche sur Internet comment faire une calculatrice en Python, je tombe sur un type de calculatrices où on entre le premier nombre, puis l'opérateur, puis le second. Comment faire pour pouvoir simplement écrire 2 + 2 et obtenir une réponse ?