A program in Xcas mode, returns the rewritten version of compilation, but in syntax python no, I think it is important to also show the rewritten version of python syntax, in order to detect possible coding errors.
Xcas mode
Code : Tout sélectionner
f(x):={
return x*x;
}
(x)->[return(x*x)]
syntax python
Code : Tout sélectionner
def f(x):
return x*x
"Done"
The two points followed by ; at the end it should be interpreted in python syntax as not showing rewritten version of code
Code : Tout sélectionner
def f(x):
return x*x
:;
"Done"