#! /usr/bin/env python # -*- coding: Latin-1 -*- import os import sys alphabet= ['a' ,'b' ,'c' ,'d' ,'e' ,'f' ,'g' ,'h' ,'i' ,'j' ,'k' ,'l' ,'m' ,'n' ,'o' ,'p' ,'q' ,'r' ,'s' ,'t' ,'u' ,'v' ,'w' ,'x' ,'y' ,'z'] # Entete de la page html print '' print 'ALL THE WORDS OF THE WORLD' print '' print '' print '

ALL THE WORDS OF THE WORLD

' print 'Here we have all words of the world with four characters maximum
' for c in alphabet: print "Words beginning by "+c+"
" for c1 in alphabet: mots=[] print '

'+c1.upper()+'


' mots.append( c1) for c2 in alphabet: mots.append( c1+c2) for c3 in alphabet: mots.append( c1+c2+c3) for c4 in alphabet: mots.append( c1+c2+c3+c4) for mot in mots: print mot, print ''