cm0002@toast.ooo to AI - Artificial intelligence@programming.devEnglish · 14 天前Stochastic Parrots: Frequently Unasked Questionsmedium.comexternal-linkmessage-square5linkfedilinkarrow-up15arrow-down10cross-posted to: fuck_ai@lemmy.worldartificial_intel@lemmy.mlhackernews@lemmy.bestiver.se
arrow-up15arrow-down1external-linkStochastic Parrots: Frequently Unasked Questionsmedium.comcm0002@toast.ooo to AI - Artificial intelligence@programming.devEnglish · 14 天前message-square5linkfedilinkcross-posted to: fuck_ai@lemmy.worldartificial_intel@lemmy.mlhackernews@lemmy.bestiver.se
minus-squareKrusty@quokk.aulinkfedilinkEnglisharrow-up2·14 天前Cat pictures sound amazing. But first I need to reverse a list in Python. Any suggestions?
minus-squaremcmodknower@programming.devlinkfedilinkEnglisharrow-up2·13 天前Surely! Python lists have a native reverse() method (source), so you should use it. Here is an example of how to use the reverse() method: >>> mylist = [12, 34, 56] >>> mylist.reverse() >>> mylist [65, 43, 21] Do you want to know more about reversing a list in python? I could show you more examples or how to implement the reversion yourself. Since you also want cat pictures, here is one:
minus-squarelad@programming.devlinkfedilinkEnglisharrow-up1·13 天前Just slap a sticker that reads ‘start here’ at its end
Cat pictures sound amazing. But first I need to reverse a list in Python. Any suggestions?
Surely! Python lists have a native
reverse()method (source), so you should use it. Here is an example of how to use thereverse()method:Do you want to know more about reversing a list in python? I could show you more examples or how to implement the reversion yourself.
Since you also want cat pictures, here is one:
Just slap a sticker that reads ‘start here’ at its end