Create your first Python CodeVille program

  1. Start PyCharm, and create a new project.
  2. To create a new python file, click menu File => New, then select Python File.

  3. Copy the following code to the editor (use your own name on the connect() call):

    Python

    from codeville import CodeVille
    game = CodeVille()
    game.connect("Your Name", "", "boy")
    
  4. Click the green arrow button to run the code:
  5. Congratulations! You are now a Python developer.

Here is a complete example of python program:

results matching ""

    No results matching ""