Below is my program for reverse method which I couldn't get the output of: could you tell me the reason?
letters = ['p', 'q', 'r', 's', 'p', 'u'] print(letters.reverse())
letters.reverse() print (letters) use a line to call the method first then second line to print.
you are trying to do 2 things at once, which in this case is not possible. you are trying to print while reversing. do reverse first in a separate line and then print and everything will be peachy 😉
it doesn't shows any error though,simply an output as "none".Why so?