/ Published in: Python
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
# Operadores matematicos print "25 == 46 es", 25 == 46 print "24 == 14 es ", 24 == 14 print "24 < 36 es ", 24 < 36 print "12 > 67 = ", 12 > 67 print "\n" #Retorno de Carro # Usando parentesis print "(24 < 36) == (50 < 51) es ", (24 < 36) == (50 < 51) print "\n" # Uso de parentesis operadores matematicos print "Sin parentesis 2 + 2 * 5 es igual a ", 2 + 2 * 5 print "Con parentesis (2 + 2) * 5 es igual a ", (2 + 2) * 5 print "\n"