File: hello-world.py

package info (click to toggle)
emacs-lsp-docker 1.0.0%2Bgit20250423.ff41f4a-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 348 kB
  • sloc: lisp: 705; sh: 50; makefile: 24; cpp: 19; javascript: 13; python: 10
file content (11 lines) | stat: -rw-r--r-- 237 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
class Greeter():
    def __init__(self, greeting):
        self.greeting = greeting

    def say_hello(self):
        print(self.greeting + " world")


if __name__ == "__main__":
    a_greeter = Greeter("Hola")
    a_greeter.say_hello()