0

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())

19th Mar 2016, 6:29 AM
Jay Khamar
Jay Khamar - avatar
3 Respostas
0
letters.reverse() print (letters) use a line to call the method first then second line to print.
24th Jun 2016, 12:02 AM
hack
hack - avatar
0
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 😉
27th Jun 2016, 4:51 AM
papka2
0
it doesn't shows any error though,simply an output as "none".Why so?
2nd Jul 2016, 11:52 AM
Mukul