Question from the Python - Fundamentals test

Create a set of characters from a string in Python

Medium

What is the output of the following code ?

a = {x for x in 'welovedevs' if x not in 'eo'}
print(f'{type(a)};{a}')
Author: ThéoStatus: PublishedQuestion passed 90 times
Edit
-1
Community Evaluations
developer avatar
Marc AUGIER
11/08/2024
Chez moi ça fait: <class 'set'>;{'s', 'w', 'd', 'l', 'v'}
developer avatar
Auteur anonyme
23/08/2024
C'est chelou, le v ne vient pas avant le d ? Dans quel ordre le for va-t-il parcourir 'welovedevs' ?
developer avatar
Auteur anonyme
23/08/2024
Ah oui, un set n'a pas d'ordre donc tu peux avoir un arrangement différent en fonction de l'execution