30-Days-Of-Python icon indicating copy to clipboard operation
30-Days-Of-Python copied to clipboard

Mistake in day 7

Open vvararu opened this issue 3 years ago • 2 comments

Here is a mistake in day 7 -> https://github.com/Asabeneh/30-Days-Of-Python/blob/master/07_Day_Sets/07_sets.md

Creating an empty set

syntax

st = {}

That will actually create an empty dictionary, not a set.

vvararu avatar Oct 25 '22 07:10 vvararu

I would like to contribute here,Please assign this issue to me.

Amritpal985 avatar Oct 26 '22 16:10 Amritpal985

Yes. It is a mistake. According to official python doc, nly way to create empty set is with set() function.

ChumchalLukas avatar Dec 12 '22 17:12 ChumchalLukas