Mar-16-2021, 01:42 PM
Thank you Sandeep_ganga, snippsat & Buran.
I get that - I was not using the print statement correctly not recognising I had called up print the original list and not the count result. However if I use mylist.reverse I have to revert to the my initial way of working as belowL
Thanks
I get that - I was not using the print statement correctly not recognising I had called up print the original list and not the count result. However if I use mylist.reverse I have to revert to the my initial way of working as belowL
mylist = [5, 12, 27, 3, 12, 5, 9, 5, 11] mylist.reverse() print(mylist)which gives the correct output of
Output:[11, 5, 9, 5, 12, 3, 27, 12, 5]
Is this because I am using () in the call and not specifying anything between ()?Thanks