Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Exercise List Overlap
Post: RE: Exercise List Overlap

Wowww, this is cool! This is a nice suggestion :) Thank you all
Damian General Coding Help 7 3,130 Apr-02-2021, 07:39 AM
    Thread: Exercise List Overlap
Post: RE: Exercise List Overlap

So, to finish off I can write something like this: without_duplicates = [] for element in result: if element not in without_duplicates: without_duplicates.append(element) print(without_dup...
Damian General Coding Help 7 3,130 Apr-01-2021, 08:54 PM
    Thread: Exercise List Overlap
Post: RE: Exercise List Overlap

Thank you for your swift reply
Damian General Coding Help 7 3,130 Apr-01-2021, 05:26 PM
    Thread: Exercise List Overlap
Post: RE: Exercise List Overlap

If I use a set: print(list(set(result))) I get [4, 5, 55] I don't understand why Python re-arrange the list when I create a set... The result should be [5, 4, 55] because the order matters
Damian General Coding Help 7 3,130 Apr-01-2021, 03:27 PM
    Thread: Exercise List Overlap
Post: Exercise List Overlap

Hi all, I've got an exercise and I'm trying to solve it. I'm a Python beginner. EXERCISE Take two lists (you can use the ones in the example below) and write a program that prints a list that cont...
Damian General Coding Help 7 3,130 Apr-01-2021, 03:10 PM
    Thread: Running latest Python version on the Terminal (MAC)
Post: RE: Running latest Python version on the Terminal ...

Cool, sure I'll have a look Thank you very much :)
Damian General Coding Help 4 2,639 Mar-22-2021, 07:58 AM
    Thread: Running latest Python version on the Terminal (MAC)
Post: RE: Running latest Python version on the Terminal ...

Amazing, it works :) I was running "python" on the Terminal. If I run "python3" it works. Thanks a lot :)
Damian General Coding Help 4 2,639 Mar-21-2021, 11:44 PM
    Thread: Running latest Python version on the Terminal (MAC)
Post: Running latest Python version on the Terminal (MAC...

Hi all, on my Terminal on Mac I've got Python 2.7.16. (I had an issue: if I do 5 / 2 on Python 2.7.16 it returns 2 while Python on Repl returns 2.5) I'd like to update it to the latest version and ...
Damian General Coding Help 4 2,639 Mar-20-2021, 06:41 PM

User Panel Messages

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