ما الخطأ في الكود ، اريده ان يطبع العناصر على شكل قائمة، من اجل ان يطبع القائمة وبعدها يعكس العناصر، علما انه يطبع فقط العنصر الاخير في القائمة، سوف ارفق لكم نص السؤال وهو :Write a program that starts off with an empty list, then prompts the user to enter the number of elements he wants to add to the list, then let the user add the elements to the list, your program should print the list then print it reversed
This is how your output should be :
Enter the number of elements in the list : 4
Enter the elements :
January
February
March
April
Your list is [January , February, March, April ]
Your reversed list is [April, March, February, January]
note: {underlined words means user input}