Petiasla

3.Wave Python

Apr 27th, 2022
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.17 KB | None | 0 0
  1. n = int(input())
  2.  
  3. for i in range (1,n +1):
  4.      print(i, end=' ')
  5. for p in  range (n-1,0,-1):                        # reversed (range (1, n+1)):
  6.     print(p, end=' ')
Advertisement
Add Comment
Please, Sign In to add comment