I keep getting the error: TypeError: integer argument expected, got float in Python 3.6.5
I keep getting the error: TypeError: integer argument expected, got float in Python 3.6.5 I am using Python version 3.6.5, downloaded from Python.org. While programming, I keep getting the error TypeError: integer argument expected, got float . I am using Python version 3.6.5, win 32 bit. Here is my complete code yet (to be worked on still): TypeError: integer argument expected, got float import pygame pygame.init() black = (0,0,0) white = (255,255,255) red = (255,0,0) blue = (0,0,255) sky_blue = (0,150,225) green = (0,255,0) displayWidth = 800 displayHeight = 600 #Final :- pygame.display.set_mode((1365, 1050)) gameDisplay = pygame.display.set_mode((displayWidth,displayHeight)) pygame.display.set_caption('Super Mario') clock = pygame.time.Clock() crashed = False timeOut = False Quit = False #50,75 marioStanding = pygame.image.load('Super_Mario_Standing.jpg') marioStanding = pygame.transform.scale(marioStanding, (displayWidth/40,displayHeight/8)) def Stand(x,y): gameDi