PASO 7: Ahora coloquemos nuestra segunda franja en su lugar.

  • Ir a y arrastre Turn Right .
  • Cambie el número entero en el .turn_right() a 45 .
  • Hacer clic Corre a ver tus cambios y Enviar y A continuación , cuando haya terminado.

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

stage.set_background_color("lightblue") # sprite = codesters.Rectangle(x, y, width, height, "color") sprite = codesters.Rectangle(0, 0, 700, 100, "gold") sprite.turn_left(45) # sprite = codesters.Rectangle(x, y, width, height, "color") sprite = codesters.Rectangle(0, 0, 700, 100, "gold")
  • Run Code
  • Enviar Trabajo
  • Actividad Siguiente
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)