notes/Blender 3D Game Move and Rotate Object-vT3g4AMm.sh
import bge

def main():
    cont = bge.logic.getCurrentController()
    owner = cont.owner
    
    owner.localPosition.x += 0.1
    owner.applyRotation([0,0,.1])
    
main()

syntax highlighted by Code2HTML, v. 0.9.1