How to call one julia program inside another julia program?

Suppose I have two programs: and I want to call in In python, we can call inside using the command from main import *. Similarly, in julia suppose I have two programs: main.jl and code.jl. How can I call code.jl inside main.jl?

You need to include("code".jl") in your main.jl. Then you can call whatever function you defined in code.jl( or use variables, etc)
If code.jl contains a module you also need to using .Mymodule (notice the dot).
You will find extensive info about modules in: