from twisted.internet.endpoints import TCP4ServerEndpoint
from twisted.internet import reactor

import editorFactory

if __name__ == "__main__":
    server = editorFactory.EditorFactory()
    TCP4ServerEndpoint(reactor, 4567).listen(server)
    reactor.run()

from twisted.internet.endpoints import TCP4ServerEndpoint
from twisted.internet import reactor

import editorFactory

if __name__ == "__main__":
    server = editorFactory.EditorFactory()
    TCP4ServerEndpoint(reactor, 4567).listen(server)
    print('Starting up...')
    reactor.run()

Print something at the start
Print something at the start

  from twisted.internet.endpoints import TCP4ServerEndpoint
  from twisted.internet import reactor
  
  import editorFactory
  
  if __name__ == "__main__":
      server = editorFactory.EditorFactory()
      TCP4ServerEndpoint(reactor, 4567).listen(server)
+     print('Starting up...')
      reactor.run()
  
Print something at the start
## Code Before:
from twisted.internet.endpoints import TCP4ServerEndpoint
from twisted.internet import reactor

import editorFactory

if __name__ == "__main__":
    server = editorFactory.EditorFactory()
    TCP4ServerEndpoint(reactor, 4567).listen(server)
    reactor.run()

## Instruction:
Print something at the start
## Code After:
from twisted.internet.endpoints import TCP4ServerEndpoint
from twisted.internet import reactor

import editorFactory

if __name__ == "__main__":
    server = editorFactory.EditorFactory()
    TCP4ServerEndpoint(reactor, 4567).listen(server)
    print('Starting up...')
    reactor.run()
