How to write a Python Program to Blender 3D Game - Print to Console ?
Solution:
import bge
def main():
cont = bge.logic.getCurrentController()
owner = cont.owner
owner.localPosition.x+=.1
print("Object's X Position is" , owner.localPosition.x)
print("Hello World")
main()