Jump to content

pb info


chachou2105

Recommended Posts

Salut, 

 

J'ai un problème en informatique : quand j'essaye de faire la partie rejoindre la fusée en python avec fonction sans paramètres, on me met un message d'erreur en disant que j'utilise trop d'éléments python. Or, en regardant la correction (par exemple celui 2 étoiles), j'ai le même programme que le prof ou alors je n'arrive pas à voir l'erreur. Voici mon programme :

 

from robot import *

def contournerAstéroïde():
    tournerGauche()
    avancer()
    tournerDroite()
    avancer()
    avancer()
    tournerDroite()
    avancer()
    tournerGauche()
    
avancer()
contournerAstéroïde
avancer()
contournerAstéroïde
avancer()
avancer()
contournerAstéroïde
contournerAstéroïde
avancer()

 

est-ce que quelqu'un peut m'aider svp ? 

 

mercii

Link to comment
Share on other sites

Le 28/01/2021 à 08:54, TartiFlemme a dit :

@chachou2105 c'est à dire?

A chaque exercice d'informatique, on a un nombre de blocs à ne pas dépasser, mais je ne sais pas comment ils sont comptés... Est-ce que une ligne = un bloc, un mot clés = un bloc ? Je sais pas trop comment t'expliquer mdrr... 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...