Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Help with Recursive solution,list items
Post: RE: Help with Recursive solution,list items

Thanks for the advice. In some hours I will finally be in front of a pc and I will try it more.and i will upload my result
gianniskampanakis Homework 8 3,577 Feb-28-2020, 03:36 PM
    Thread: Help with Recursive solution,list items
Post: RE: Help with Recursive solution,list items

def allSames(l): Value= True for i in l: if l.count(i) < 2: Value = False return Value This is my programme but with no recursion. Excuse me but I write this from my phone and I ca...
gianniskampanakis Homework 8 3,577 Feb-27-2020, 10:05 AM
    Thread: Help with Recursive solution,list items
Post: RE: Help with Recursive solution,list items

I am sorry. I mean if every item in list appears more than one time then it is true. I am glad to try solve this and I really tried. I can solve the problem but not with recursive function because I c...
gianniskampanakis Homework 8 3,577 Feb-27-2020, 09:37 AM
    Thread: Help with Recursive solution,list items
Post: Help with Recursive solution,list items

Hi. This exercise was at the first exam of my university but I cant solve it. It needs to make a function using recursion. We have for example a list like [1,1,1,1] and we need to check if the items i...
gianniskampanakis Homework 8 3,577 Feb-27-2020, 09:26 AM
    Thread: calculation with list in list
Post: RE: calculation with list in list

That's nice guys. I have never heard of insinstace use
gianniskampanakis General Coding Help 13 4,538 Aug-09-2019, 12:01 PM
    Thread: calculation with list in list
Post: RE: calculation with list in list

Thank you guys
gianniskampanakis General Coding Help 13 4,538 Aug-09-2019, 08:27 AM
    Thread: calculation with list in list
Post: RE: calculation with list in list

Σε ευχαριστώ το type(i) εκτός από int τι τιμες μπορεί να πάρει στην περίπτωση μας ;
gianniskampanakis General Coding Help 13 4,538 Aug-09-2019, 06:39 AM
    Thread: calculation with list in list
Post: RE: calculation with list in list

No recursion is not needed. I study this exercise in order to give exams at university. Theoretically we have not learn yet recursion The help note says: Write a sumL function that will calculate the...
gianniskampanakis General Coding Help 13 4,538 Aug-08-2019, 09:04 PM
    Thread: calculation with list in list
Post: RE: calculation with list in list

Well I need the code to work for both lists. It has to calculate every list that you can give .
gianniskampanakis General Coding Help 13 4,538 Aug-08-2019, 07:41 PM
    Thread: calculation with list in list
Post: RE: calculation with list in list

Somehow I have to use the def inside the def but I cant solve it . Or call the def repeatedly
gianniskampanakis General Coding Help 13 4,538 Aug-08-2019, 06:43 PM
    Thread: calculation with list in list
Post: calculation with list in list

hello. with this code i can calculate 1 + 2 + 3 = 6 l = [1,2,3,] def suml(l): s= 0 for i in l: s = s + i return s but what can i do if i want to calculate this list ( 1 + 2 +3 +( 1 + 2)...
gianniskampanakis General Coding Help 13 4,538 Aug-08-2019, 06:36 PM

User Panel Messages

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