transposition rectangulaire

transposition rectangulaire - Python - Programmation

Marsh Posté le 13-05-2020 à 19:21:34    

notre prof devait nous apprendre à faire un transposition en cours pour notre projet final, mais il y a eu le confinement.
j'ai essayé d'en faire une mais ça pas matchée.
c'est la dernière partie de mon programme après je pourrais l'envoyé.
 
 
CLE_TRANSPO = 'SUCRE'
'S' = 4
'U' = 5  
'C' = 1
'R' = 3
'E' = 2
 
t = [['S', 'U', 'C', 'R', 'E'], [1, 2, 3, 4, 5]]
chaine = ""
for i in range(2):
    for j in range(5):
        chaine = chaine + str(t[i][j]) + " "
    chaine = chaine + "\n"
print(chaine)

Reply

Marsh Posté le 13-05-2020 à 19:21:34   

Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed