[EdLUG] Learning python

Andrew Smith asmith9983 at gmail.com
Sun Apr 11 15:40:47 UTC 2021


Guys
I have a Raspberry Pi and  after some thought, decided I should learn
Python as it's the  language most used in projects around it,and also in
data science.
Knowing C++, and Haskell, I thought it would be simple. *Hello World*  was
no problem, but lists have been less so.

I've attached my test code.  I Had to comment out lines 5 & 6 to get any
output.
Why  does  .reverse(0 not work as a list method on line 5, and then as a
stand alone function on  line 7 ?
Andrew
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.edlug.org.uk/pipermail/edlug/attachments/20210411/985163dd/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mytest1.py
Type: text/x-python
Size: 151 bytes
Desc: not available
URL: <http://lists.edlug.org.uk/pipermail/edlug/attachments/20210411/985163dd/attachment.py>


More information about the EdLUG mailing list