You can enter this in a script or at the REPL. This function takes no arguments and returns the number 42. {{fname|r0}} is a register, and the value in this register when the function returns is the value that is returned. Micro Python always interprets the {{integer|r0}} as an integer, and converts it to an integer object for the caller.
+
You can enter this in a script or at the REPL. This function takes no arguments and returns the number 42. {{fname|r0}} is a register, and the value in this register when the function returns is the value that is returned. Micro Python always interprets the {{fname|r0}} as an integer, and converts it to an integer object for the caller.
If you run {{fname|print(fun())}} you will see it print out 42.}}
If you run {{fname|print(fun())}} you will see it print out 42.}}