Prototype Module
A look at what is currently available on eBay
![]() Visibility light Sensor MM1616 Prototype Module US $6.99
|
![]() Chinduino Mega1280/2560 prototyping Prototype Shield Module US $11.36
|
![]() Chinduino Sensor Prototype Brick Module +Free 3pin Cable US $5.61
|

Python Scripts?
Can one create a script were that one calls other scripts to be execute as well? What I mean as to create a script that would be the Main or control of a program like in C++ and it calls other scripts to do what it wants, like the modules in main in C++. Is there a Clear Screen system("cls"); function in python. Also are there arguments, parameters and prototypes in Python?
One would execute a script, call a function. A script can execute another script, but it would be better to collect the statements of that script within a function, import the module and call the function.
A script that is executed from a command line, system call or from the idle run menu starts from the top of the file and starts executing each statement. The interpretter doesn't look for a main() to execute as in C/C++.
def func(arg1,arg2): starts the definition of a function. The arguments can be required as shown, optional with a default value, or like the varargs in C. The type of the arguments are not declared and there is no prototype (the definition is the declaration). If this function is in a file called "myfunc.py" then another script could
import myfunc
myfunc.func(1,2)
to execute the function or
from myfunc import func
func(1,2)
check execfile in the language index if you really want to execute another script in place.
As for cls: Probably depends on what you're writing to (using print for instance). However, if you're writing something complex enough to make cls useful you'll probably want to start using the tkinter modules. This is python interface to TK/TCL, a basic GUI toolkit. But, learn the language first--tkinter can be confusing without a firm grip on python syntax.
























