title: How make a pause inside a loop?
body: <p>I've connected a 20*4 LCD screen on my Raspberry Pi. It works.</p>
  
  <p>I have a code to screen several sentences and loop them</p>
  
  <p>But I can't find a proper way to pause each 4 sentences and to clear the screen before next 4 sentences</p>
  
  <p>Here is the actual code (edited because while pasting I had an indentation change) </p>
  
  <pre><code>  def typewriter_like(sentence, lcd_line, delay=0.7):
        for i,letter in enumerate(sentence):
            lcd_byte(lcd_line, LCD_CMD)
            lcd_string(sentence[:i+1],1)
            time.sleep(delay)
  
        mots = (("EXAMPLE", "EXAMPLES", "EXAMPLESS", "EXAMPLESSS"),
                ("ONE", "TWO", "THREE", "FOUR"),
                ("LULU", "FIFI", "RIRI", "TATA"))
        lcds = (0x80, 0xC0, 0x94, 0xD4)
        list(zip(mots,lcds))
        [(('EXAMPLE', 'EXAMPLES', 'EXAMPLESS', 'EXAMPLESSS'),128),(('ONE', 'TWO', 'THREE','FOUR'),192),(('LULU', 'FIFI', 'RIRI', 'TATA'),148)]
  
     while True:
       for mot in mots:
           for word, lcd in zip(mot, lcds):
               typewriter_like(word, lcd)
          time.sleep(10)
  
          for lcd in lcds:
                  lcd_byte(lcd, LCD_CMD)
                  lcd_string("",2)
  
          time.sleep(4)
  </code></pre>
  
  <p>What I want is to pause the first 4 words... Then erase everything (all cleared) before print the 4 next words</p>
  
  <p>EXAMPLE
  EXAMPLES
  EXAMPLESS
  EXAMPLESSS</p>
  
  <p>stay printed for 10 seconds
  Then all cleared</p>
  
  <p>ONE
  TWO
  THREE
  FOUR ...</p>
  
  <p>stay printed for 10 seconds</p>
  
  <p>etc...</p>
  
  <p>And at the end a loop...
  Could someone help me ?</p>