how to use repl
PatriciaMedina (5)

I have created one file in repl using python and it worked. Now I am trying a second file and it is not working. The key words are not even hot. What do I do to create multiple documents??

You are viewing a single comment. View All
masfrost (45)

@PatriciaMedina For folders (subpackages), you should add an __init__.py file, for simple cases you can just leave it empty.

Also avoid spaces in your package names, otherwise you have to jump through some hoops. Here's the convention for file names in python.

Here's a simple example https://repl.it/@masfrost/dice-game

Edit: you don't actually need __init__.py, but it makes life easier. See here

Honestly, I'd just leave folders and packages alone if I'm just starting out, and just flatly add .py files on the root directory.