up
This commit is contained in:
parent
c70d5af3b1
commit
2c1d024c73
13
Lire_ou_ne_pas_lire.py
Normal file
13
Lire_ou_ne_pas_lire.py
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
nbLivres = int(input())
|
||||||
|
titreLivre = [0] * nbLivres
|
||||||
|
longTitre = [0] * nbLivres
|
||||||
|
taille = 0
|
||||||
|
|
||||||
|
for idLivre in range(nbLivres):
|
||||||
|
titreLivre[idLivre] = input()
|
||||||
|
longTitre[idLivre] = len(titreLivre[idLivre])
|
||||||
|
|
||||||
|
for idLivre in range(nbLivres):
|
||||||
|
if longTitre[idLivre] > taille:
|
||||||
|
taille = len(titreLivre[idLivre])
|
||||||
|
print(titreLivre[idLivre])
|
Loading…
x
Reference in New Issue
Block a user