9. I18N WITH LITERAL BLOCK¶
CORRECT LITERAL BLOCK:
this is
literal block
MISSING LITERAL BLOCK:
THAT’S ALL.
10. CODE-BLOCKS¶
def main
'result'
end
#include <stdlib.h>
int main(int argc, char** argv)
{
return 0;
}
#include <stdio.h>
int main(int argc, char** argv)
{
return 0;
}
11. DOCTEST-BLOCKS¶
>>> import sys # sys importing
>>> def main(): # define main function
... sys.stdout.write('hello') # call write method of stdout object
>>>
>>> if __name__ == '__main__': # if run this py file as python script
... main() # call main