Dans cet article nous voyons comment afficher dans la console sans créer de nouvelle ligne. Voici quelques clé pour réussir (Python print without newline)
Simplement pour pouvez utiliser print de la façon suivante avec le paramètre « end » :
print('hello', end='')
Cela permet de ne pas ajouter de nouvelle ligne avec print :
Exemple :
print('hello world ! ', end='') print('hello world ! ', end='') print('hello world ! ', end='') print('hello world ! ', end='')
Donne le résultat :

Liens internes et externes – Python print without newline :
https://128mots.com/index.php/2021/05/14/algorithme-de-prim-et-implementation-en-python/
https://128mots.com/index.php/2021/04/29/dataframe-to-csv-how-to-export-pandas-dataframe/