for a in range (0, WIDTH): print(a)
works if I use int(WIDTH)
Depending on the units you used when setting the size() it's quite possible that WIDTH and HEIGHT will be floating point values, so you'll always need to wrap them in int() in contexts where an integer is required (such as your range() use case).
Activity
samizdatco commented on May 23, 2025
Depending on the units you used when setting the size() it's quite possible that WIDTH and HEIGHT will be floating point values, so you'll always need to wrap them in int() in contexts where an integer is required (such as your range() use case).