having all relevant code would be nice. i.e. variable declarations of post an in, and any libraries you may be using. As for the function, is it hand coded or out of a library? If it's hand coded, we'll need that as well. If it's out of a library, then it's being used incorrectly. The "str" in strcpy() implies string like this was designed for use on arrays of chars not ints. While it could be used for arrays of anything, it'll just end up really confusing if you try to use it for anything other than strings or arrays of chars.
strcpy() does not work with single characters -- it works with entire null-terminated character arrays. If you want to copy just a single character than simply use the = assignment operator. post[j] = in[x];
root = tkinter.Tk()
buttons=[i for i in range(10)]
#If specific button is pressed, output "YES"
for num in buttons: