@victorhck mejor
c2 = list(reversed(c1))
@victorhck mejor
c2 = list(reversed(c1))
@victorhck perdon, retorna un iterator, asi tiene que expandir la lista.
c2 = reversed(c1)
print(list(c2))
"The reverse() method modifies the sequence in place for economy of space when reversing a large sequence. To remind users that it operates by side effect, it does not return the reversed sequence."
@victorhck reversed(c1)
@victorhck creo que reverse tiene efecto "inplace" asi retorna None, pero el objecto originao si esta modificado.
ساسي بيريريGambiologista e Comunicador Popular ;*
tiflolinux.org - GNU Social is a social network, courtesy of tiflolinux.org. It runs on GNU social, version 2.0.1-beta0, available under the GNU Affero General Public License.
All tiflolinux.org - GNU Social content and data are available under the Creative Commons Attribution 3.0 license.