I am trying to solve a programming prompt. My task is to write a function that takes a shuffled list of unique numbers from 1 to n with one element missing (which can be any number including n). Return this missing number. Please write it in Python.

Examples:
[1, 3, 4]  =>  2
[1, 2, 3]  =>  4
[4, 2, 3]  =>  1

system
main ek programing prompt ko hal karne kii koshish kar rahaa hum.meraa kaary ek fnction likhnaa he jo 1 se n tak adwitiya sankhyaon kii ek pherbadal suchi letaa he jisamen ek tatv gaayab he (jo ki en sahit koi bhi sankhya ho sakati he).is laapata number ko lautaaen.kripaya ise paythan main likhen.

udhaaharan:
[1, 3, 4] => 2
[1, 2, 3] => 4
[4, 2, 3] => 1
user
yahan us samasya kaa ek samaadhaan he:

def find_missing_number (sankhya):
    eks = len (sankhya)
    kul = raashi (sankhya)
    baaki = (x+1)*(x+2))
    aaraam = aaraam/2
    gum = aaraam - kul
    
    laapata vaapasi

yahan ek spashtikaran he ki code kaise kaam karata he.
1.) pehle input suchi sankhyaon kii lambaai kii gananaa or char x main sangrahit kii jaati he.
2.) tab input se sankhyaon kaa yoga SUM () kaa upyog karke gananaa kii jaati he
3.) ek ankaganitiya anukram ke yoga ko khojane ke liye sutara kaa upyog yah pataa lagane ke liye kiya jaataa he ki yadi koi sankhya gaayab nahin thi to raashi kya hogi.
4.) laapata sankhya kii gananaa 1 se n se ankaganitiya anukram ke yoga se input se sankhyaon ke yoga ko ghataakar kii jaati he.
5.) ant main, fnction laapata hone kaa maan lautaata he.
assistant
<|system|>
</s>
<|user|>
main ek programing prompt ko hal karne kii koshish kar rahaa hum.meraa kaary ek fnction likhnaa he jo 1 se n tak adwitiya sankhyaon kii ek pherbadal suchi letaa he jisamen ek tatv gaayab he (jo ki en sahit koi bhi sankhya ho sakati he).is laapata number ko lautaaen.kripaya ise paythan main likhen.

udhaaharan:
[1, 3, 4] => 2
[1, 2, 3] => 4
[4, 2, 3] => 1</s>
<|assistant|>
yahan us samasya kaa ek samaadhaan he:

def find_missing_number (sankhya):
    eks = len (sankhya)
    kul = raashi (sankhya)
    baaki = (x+1)*(x+2))
    aaraam = aaraam/2
    gum = aaraam - kul
    
    laapata vaapasi

yahan ek spashtikaran he ki code kaise kaam karata he.
1.) pehle input suchi sankhyaon kii lambaai kii gananaa or char x main sangrahit kii jaati he.
2.) tab input se sankhyaon kaa yoga SUM () kaa upyog karke gananaa kii jaati he
3.) ek ankaganitiya anukram ke yoga ko khojane ke liye sutara kaa upyog yah pataa lagane ke liye kiya jaataa he ki yadi koi sankhya gaayab nahin thi to raashi kya hogi.
4.) laapata sankhya kii gananaa 1 se n se ankaganitiya anukram ke yoga se input se sankhyaon ke yoga ko ghataakar kii jaati he.
5.) ant main, fnction laapata hone kaa maan lautaata he.</s>
