I'm having an issue with my Python code.

my_set = {}

def add_myset(value):
    my_set.add(value)
    return my_set
    
value = float(input("Enter number value to add to set: "))
print(add_myset(value))

So I try adding things to the set and it's returning "AttributeError: 'dict' object has no attribute 'add'". It's a set. Sets are {} braces. What's going on?
system
main apane paythan code ke saath ek samasya kar rahaa hum.

my_set = {}

def add_myset (maan):
    my_set.add (maan)
    My_set lautaaen
    
maan = flot (input ("set karne ke liye sankhya maan darj karen:"))
print (add_myset (maan))

isliye main set main chizon ko jodne kii koshish karata hum or yah "Atteributeerror: 'dict' object kii koi visheshta 'joden' 'nahin he.yah ek set he.set {} bracis hai.kya chal rahaa he?
user
jab aap ek khaali set banaate hai, to aap aisa karne ke liye `{}} kaa upyog nahin kar sakate kyonki paythan ise ek khaali shabdkosh ke rup main pahachaanata he.iske bajaay, aap `set ()` vidhi kaa upyog karnaa chaahate hai.yahan aapke code ke liye ek saral sudhaar he:

# ek set banaaen
my_set = set ()

def add_myset (maan):
    my_set.add (maan)
    My_set lautaaen
    
maan = flot (input ("set karne ke liye sankhya maan darj karen:"))
print (add_myset (maan))

ab `my_set` ko ek shabdkosh ke bajaay ek khaali set ke rup main banaaya jayega.
assistant
<|system|>
</s>
<|user|>
main apane paythan code ke saath ek samasya kar rahaa hum.

my_set = {}

def add_myset (maan):
    my_set.add (maan)
    My_set lautaaen
    
maan = flot (input ("set karne ke liye sankhya maan darj karen:"))
print (add_myset (maan))

isliye main set main chizon ko jodne kii koshish karata hum or yah "Atteributeerror: 'dict' object kii koi visheshta 'joden' 'nahin he.yah ek set he.set {} bracis hai.kya chal rahaa he?</s>
<|assistant|>
jab aap ek khaali set banaate hai, to aap aisa karne ke liye `{}} kaa upyog nahin kar sakate kyonki paythan ise ek khaali shabdkosh ke rup main pahachaanata he.iske bajaay, aap `set ()` vidhi kaa upyog karnaa chaahate hai.yahan aapke code ke liye ek saral sudhaar he:

# ek set banaaen
my_set = set ()

def add_myset (maan):
    my_set.add (maan)
    My_set lautaaen
    
maan = flot (input ("set karne ke liye sankhya maan darj karen:"))
print (add_myset (maan))

ab `my_set` ko ek shabdkosh ke bajaay ek khaali set ke rup main banaaya jayega.</s>
