integer expected got float(how to fix this issue ) :     i am facing this problem in the code below. i couldn't understand how to fix it
    please give me a solution
    as am a beginner and don't know how to fix it 
    i can just analyze where it arises
            
        
            w = curses.newwin(sh, sw, 0, 0)
        


        w.keypad(1)
        w.timeout(100)
        snk_x = sw/4
        snk_y = sh/2
        snake = [
            [snk_y,snk_x],
            [snk_y,snk_x-1],
            [snk_y,snk_x-2]
        ]
        

food = [sh/2,sw/2]
w.addch(food[0], food[1],curses.ACS_PI)#here in this line i get error
           