#Write a program in python that print a list of numbers from 1 to 9 in descending order using while loop, then print the last 5 items: :

nums = [1,2,3,4,5,6,7,8,9]

while nums:

    print(nums.pop())

while len(nums) >= 5:

    print(nums.pop())