RE: What this error want to say? Can't we use return without function?

2020-09-08 Thread Schachner, Joseph
I see. You didn't declare a function, it's just a python script. So you don't need a return in that situation, the script just ends when there are no more lines. By the way: you certainly don't want to return or quit BEFORE you print(nice). But the fix here is simply to delete "return coun".

newbie

2020-09-08 Thread Don Edwards
Purchased the book python-basics-2020-05-18.pdf a few days ago. To direct my learning I have a project in mind as per below; Just started learning python 3.8. At 76 I will be a bit slow but fortunately decades ago l learnt pascal. I am not asking programming help just guidance toward package(s) I

Fwd: PYTHON BUG. deleting elements of list.

2020-09-08 Thread Driuma Nikita
    Пересылаемое сообщение 08.09.2020, 01:43, "python-list-ow...@python.org" :   Hello! I see you want to post a message to the Python List. We would be happy to help, but you must subscribe first:   [1]https://mail.python.org/mailman/listinfo/python-l

Opening python

2020-09-08 Thread Rnyx_ Scarl01
Hello I've downloaded the newest python but I can't find the python compiler app eventhough I've already downloaded tge necessary files. What shoukd I do? -- https://mail.python.org/mailman/listinfo/python-list

[RELEASE] Python 3.8.6rc1 is now ready for testing

2020-09-08 Thread Łukasz Langa
Python 3.8.6rc1 is the release candidate of the sixth maintenance release of Python 3.8. Go get it here: https://www.python.org/downloads/release/python-386rc1/ Assuming no critical problems are found prior to 2020-09-21, the scheduled

Re: Opening python

2020-09-08 Thread Mats Wichmann
On 9/7/20 11:33 PM, Rnyx_ Scarl01 wrote: > Hello I've downloaded the newest python but I can't find the python > compiler app eventhough I've already downloaded tge necessary files. What > shoukd I do? What have you tried? And what platform are you on? This is mildly more involved on Windows.

Re: Fwd: PYTHON BUG. deleting elements of list.

2020-09-08 Thread Mats Wichmann
On 9/7/20 5:01 PM, Driuma Nikita wrote: _list = list(range(50)) for i, el in enumerate(_list): del _list[i] print(_list) Don't change the the list while you are iterating over it, it messes up the iteration. It's not "randomly deleting", it's when next is called to fetch

Re: Fwd: PYTHON BUG. deleting elements of list.

2020-09-08 Thread Richard Damon
On 9/8/20 7:06 PM, Mats Wichmann wrote: > On 9/7/20 5:01 PM, Driuma Nikita wrote: > > > _list = list(range(50)) > for i, el in enumerate(_list): > del _list[i] > print(_list) > > > Don't change the the list while you are iterating over it, it messes up > the iteration. It's

Re: Opening python

2020-09-08 Thread Cameron Simpson
On 08Sep2020 12:33, Rnyx_ Scarl01 wrote: >Hello I've downloaded the newest python but I can't find the python >compiler app eventhough I've already downloaded tge necessary files. What >shoukd I do? After a download it is normally necessary to run the installer. Python is an interpreted language

Re: newbie

2020-09-08 Thread Cameron Simpson
On 08Sep2020 10:22, Don Edwards wrote: >Purchased the book python-basics-2020-05-18.pdf a few days ago. >To direct my learning I have a project in mind as per below; A project is an excellent way to learn something; personally I find it hard to learn something without something to which to apply

Re: newbie

2020-09-08 Thread Grant Edwards
On 2020-09-08, Don Edwards wrote: > I may need. My aim is to write a program > that simulates croquet - 2 balls colliding with the strikers (cue) ball > going into the hoop (pocket), not the target ball. I want to be able to > move the balls around and draw trajectory lines to evaluate different

Module exists and cannot be found

2020-09-08 Thread James Moe via Python-list
python 3.6.10 opensuse tumbleweed linux 5.8.4 An old program based on Python (BackInTime) has recently been having difficulties functioning. See below. Module PyQt5 is most definitely installed. Apparently there is more to getting modules loaded than there used to be. (Also, I am not familiar wi

Re: newbie

2020-09-08 Thread Cameron Simpson
On 09Sep2020 01:24, Grant Edwards wrote: >On 2020-09-08, Don Edwards wrote: >> I may need. My aim is to write a program >> that simulates croquet - 2 balls colliding with the strikers (cue) ball >> going into the hoop (pocket), not the target ball. I want to be able to >> move the balls around an

Re: Fwd: PYTHON BUG. deleting elements of list.

2020-09-08 Thread Peter Otten
Mats Wichmann wrote: > On 9/7/20 5:01 PM, Driuma Nikita wrote: > > > _list = list(range(50)) > for i, el in enumerate(_list): > del _list[i] > print(_list) > > > Don't change the the list while you are iterating over it, it messes up > the iteration. It's not "randomly