text: import string
  from turtle import speed
  
  
  class Robot():
      __name = "<unnamed>"
      __power = False
      __current_speed = 0
      __battery_level = 0
      __states = ['shutdown', 'running']
      
          
  
      def __init__(self, name):
          self.__name = name
          print('initialisation', format(self.__name))
  
  
      def eteint(self):
          self.__power=0
      def allumé(self):
          self.__power=1
      
  
  
      def stop(self):
          self.__current_speed=0
      def move(self,speed):
          if type(speed)== int:
              self.__current_speed=speed
      def speed(self):
          return self.__current_speed
  
  
  
  
  
      def charge(self, __battery_level):
          for i in range(100):
              self.__battery_level=__battery_level +1
  
      def battery_level(self):
          return self.__battery_level
  
  
      def shutdown (self):
          self.power=0
  
          
  
      def running (self):
          self.power=1
          
  
  monrobot=Robot("bob")
  monrobot.move(40) #test de lecture de vitesse 
  print(monrobot.speed())
  print(monrobot.battery_level())