source: pyrunner/helloworld/helloworld.py@ 566

Last change on this file since 566 was 353, checked in by wouter, 2 years ago

#110 added small python helloworld example. Compiled it to targz and added as test.

File size: 406 bytes
RevLine 
[353]1import sys
2from typing import List
3class HelloWorld:
4 '''
5 Test for translation to python.<br>
6 Extra line for multiline-test.
7 '''
8 __username:str = "Jan"
9 __lastname:str = "Coens"
10
11 @staticmethod
12 def main(args:List[str]) -> None:
13 sys.stdout.write("Hello " + HelloWorld.__username + "!")
14
15if __name__ == "__main__":
16 HelloWorld.main(sys.argv[1:])
17
18def helloworld() :
19 HelloWorld.main(sys.argv[1:])
Note: See TracBrowser for help on using the repository browser.