Stream: Beginner Questions

Topic: ✔ Set behaviour


view this post on Zulip Christian Zimmerer (Nov 14 2022 at 19:39):

Can someone tell me how a set can contain the same element twice?

view this post on Zulip Mathias Fleury (Nov 14 2022 at 19:42):

this is probably just how the code generation prints it. The set does not include 1 twice

view this post on Zulip Christian Zimmerer (Nov 14 2022 at 19:43):

Oh I see. Just tried it and it says that {1, 1} = {1}.

view this post on Zulip Notification Bot (Nov 14 2022 at 19:43):

Christian Zimmerer has marked this topic as resolved.


Last updated: Apr 24 2024 at 04:17 UTC