User Tools

Site Tools


programming:python:python

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
programming:python:python [2022/11/30 12:21] ateixeiraprogramming:python:python [2024/07/08 13:42] (current) – [Exercice 4 : for2] ateixeira
Line 56: Line 56:
 <code python> <code python>
  
-nombre = input('Salut!\nEntre un nombre :')+nombre = input('Salut!\nEntre un nombre: ')
  
 for i in range(int(nombre)): for i in range(int(nombre)):
-    print(i+1) +    print(i+1, end=' ')
 </code> </code>
   * Then press Esc key   * Then press Esc key
programming/python/python.1669810904.txt.gz · Last modified: 2022/11/30 12:21 by ateixeira