Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Recursivity - Problem
Post: Recursivity - Problem

Hi, I got a problem this code : def deepconcat(l) : if l == [] : return None elif len(l) == 1 : return l[0] else : for i in l : if type(i) == str : ...
SupaFlamme General Coding Help 6 2,930 Jan-14-2019, 09:48 PM
    Thread: Dictionnaries - Equality
Post: RE: Dictionnaries - Equality

Here is a modification : def equal(l,d) : n_key = 0 n_true = 0 for key in d : n_key += 1 if d[key] == l[key[0]][key[1]] : n_true += 1 if n_key == n_true :...
SupaFlamme General Coding Help 3 2,735 Jan-13-2019, 12:18 PM
    Thread: Dictionnaries - Equality
Post: Dictionnaries - Equality

Hello, I need your help. I have to write a function which returns True or False according to the equality between a dictionnary and a list. For example : l = [[0, 2, 4], [4, 1, 0]] d = {(0,1): 2, (...
SupaFlamme General Coding Help 3 2,735 Jan-13-2019, 12:07 PM

User Panel Messages

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