I want a small python function that adds a 20% error after any number in a piece of text. It'll always be integers so you don't need to worry about whether it's a float or not.
system
main ek chota paythan fnction chahta hum jo paath ke ek tukade main kisi bhi sankhya ke baad 20% truti jodta he.yah hameshaa purnank hoga, isliye aapako is bare main chintaa karne kii aavashyaktaa nahin he ki yah ek flot he yaa nahin.
user
koi baat nahin!yahaan ek chota paythan fnction he jise kisi paath main prayek sankhya ke baad 20 pratishat truti jodna chahie:

ERRORMARGIN (paath) ko paribhaashit karen:
    
    numlist = [int (s) t ke liye text.split () yadi s.isdigit ()]
    NumList main item ke liye:
        num_err = str (item) + ' +-' + str (int (item*.2))
        paath = text.replace (str (item), num_err)
    vaapasi paath
assistant
<|system|>
</s>
<|user|>
main ek chota paythan fnction chahta hum jo paath ke ek tukade main kisi bhi sankhya ke baad 20% truti jodta he.yah hameshaa purnank hoga, isliye aapako is bare main chintaa karne kii aavashyaktaa nahin he ki yah ek flot he yaa nahin.</s>
<|assistant|>
koi baat nahin!yahaan ek chota paythan fnction he jise kisi paath main prayek sankhya ke baad 20 pratishat truti jodna chahie:

ERRORMARGIN (paath) ko paribhaashit karen:
    
    numlist = [int (s) t ke liye text.split () yadi s.isdigit ()]
    NumList main item ke liye:
        num_err = str (item) + ' +-' + str (int (item*.2))
        paath = text.replace (str (item), num_err)
    vaapasi paath</s>
