cars = ["audi", "bmw", "ford", "tesla"]
print(cars.reverse())
The result is None
.
newList=list(reverse_iterator)
print("reversed list is:",newList)
But when I do this the result is ['tesla', 'ford', 'bmw', 'audi']
.
cars = ["audi", "bmw", "ford", "tesla"]
print(cars.reverse())
The result is None
.
newList=list(reverse_iterator)
print("reversed list is:",newList)
But when I do this the result is ['tesla', 'ford', 'bmw', 'audi']
.