##### Results
Search Results
Post Author Forum Replies Posted [asc]

 Thanks perfringo and ibreeden, very helpful
Oldman45 General Coding Help 3 148 Apr-07-2021, 08:51 AM

 I am using the following coding, from a text book, to compare two methods of measuring execution time for coding but time.clock is not recognised. I am on Windows 10 using Python 3.9.2 The coding is...
Oldman45 General Coding Help 3 148 Apr-06-2021, 10:33 AM

 Buran, snippsat thanks for the education, I will now practice what I learnt. I really appreciate the support
Oldman45 General Coding Help 7 455 Mar-16-2021, 04:25 PM

 Thank you Sandeep_ganga, snippsat & Buran. I get that - I was not using the print statement correctly not recognising I had called up print the original list and not the count result. However if ...
Oldman45 General Coding Help 7 455 Mar-16-2021, 01:42 PM

 I am learning about lists and apparently list.count does not function in the following: mylist = [5, 12, 27, 3, 12, 5, 9, 5, 11] mylist.count(3) print(mylist)The output I get is Output:[5, 12, 27, 3, ...
Oldman45 General Coding Help 7 455 Mar-16-2021, 10:27 AM

 (Feb-17-2021, 01:52 AM)jefsummers Wrote: (Feb-16-2021, 03:55 PM)Oldman45 Wrote: Could you please recommend a learning source as I am really struggling to learn functions? I am currently trying to ...
Oldman45 General Coding Help 13 607 Feb-17-2021, 10:05 AM

 (Feb-16-2021, 08:02 PM)snippsat Wrote: Is Sam🦄 so special that he need a function that only work for him. So to give a example of what i mean. def count_to_name(lst, name): count = 0 for ele...
Oldman45 General Coding Help 13 607 Feb-17-2021, 10:01 AM

 (Feb-16-2021, 04:25 PM)Serafim Wrote: Note that, if "Sam" is not in the list, you get the length of the list as result. This, however, gives "None" if "Sam" is missing: def count_to_sam(samlist): ...
Oldman45 General Coding Help 13 607 Feb-17-2021, 09:57 AM

 (Feb-15-2021, 12:27 PM)Serafim Wrote: (Feb-15-2021, 09:20 AM)Oldman45 Wrote: Good Morning I am running Python 3.8.5 and trying to develop a function that counts the number of words in a list up to...
Oldman45 General Coding Help 13 607 Feb-16-2021, 04:04 PM

 (Feb-15-2021, 01:39 PM)jefsummers Wrote: Lots of issues. Here is yours with comments: lst = ["able", "been", "state", "Sam", "beer"] length = len(lst) # you don't use this def test(lst): #needs a be...
Oldman45 General Coding Help 13 607 Feb-16-2021, 03:55 PM

 Good Morning I am running Python 3.8.5 and trying to develop a function that counts the number of words in a list up to and including the word Sam. Here is what I have developed so far: lst = ["able"...
Oldman45 General Coding Help 13 607 Feb-15-2021, 09:20 AM
Post: RE: Function encapsulation

 Hello spaceraiders Thanks for a prompt reply. In answer to your question my code would not execute. However, BashBedlam has solved the issue for me - it was down to me not reading the instructions ...
Oldman45 General Coding Help 4 364 Jan-22-2021, 11:38 AM
Post: RE: Function encapsulation

 Hello BashBedlam Thanks for the prompt response - really helpful. **smile** My stupidity I guess, as I clearly did not read the instruction properly. I was inserting just the print_multiples(i) ins...
Oldman45 General Coding Help 4 364 Jan-22-2021, 11:32 AM
Post: Function encapsulation

 I need help please. I am trying to learm Python and work with Python 3.83.5 using How To Think Like A Computer Scientist as a guide. I am at Chapter 7 Encapsulation and have the following working fun...
Oldman45 General Coding Help 4 364 Jan-21-2021, 01:32 PM

 Hello Deanhystad Thanks for your direct advice - very wise words I have found. Apologies for taking so long to get back but I have been reading and now understand the point being made about Scope. I...
Oldman45 General Coding Help 6 734 Aug-18-2020, 05:15 PM

 Hello scidam Thank you for your interest and suggestion. I can understand the logic of your code and it gives the right answer and I have learnt a little more about Python. However, I want to devel...
Oldman45 General Coding Help 6 734 Aug-11-2020, 04:51 PM

 I am teaching myself python and have this function in a programme: x1 = 1 x2 = 2 y1 = 4 y2 = 6 def distance(x1, y1, x2, y2): dx = x2 - x1 dy = y2 - y1 return 0.0 print(dx, dy)the output ...
Oldman45 General Coding Help 6 734 Aug-11-2020, 09:05 AM

 Hello IntrOspective I have only just seen this - thank you for your continued support. I have looked in the book and it took me some time to spot it but you are correct, thank you. I am really stru...
Oldman45 General Coding Help 7 801 Aug-11-2020, 08:59 AM

 Hello IntrOspective Very helpful and informative thank you for your time and interest. I have learnt something there. I am using How to Think Like a Computer Scientist to teach myself Python and in...
Oldman45 General Coding Help 7 801 Aug-09-2020, 01:04 PM

 Hello ndc85430 I am trying to teach myself Python from How to Think Like a Computer Scientist so I must admit to being very much a tyro, please forgive my lack of knowledge. Now answering your hint ...
Oldman45 General Coding Help 7 801 Aug-08-2020, 05:19 PM

### User Panel Messages

##### Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020