PASO 6: Los problemas de porcentaje se pueden completar en dos pasos. ¡Comenzaremos por encontrar el valor del descuento!

En Python, puede multiplicar dos valores usando * y dividir dos valores usando / .

  • En LÓGICA, vaya a . Arrastre Float Variable . Cambia el nombre a discount .
  • Cambie el valor a price * percent / 100 .

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Enviar Trabajo
  • Actividad Siguiente
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)