From 4d4716406f8b4adb21f63de68078593af793004b Mon Sep 17 00:00:00 2001 From: Prashant Pandey <67793059+lemihack@users.noreply.github.com> Date: Mon, 25 Oct 2021 10:55:27 +0545 Subject: [PATCH] Create simple-method.py --- Python/simple-method.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 Python/simple-method.py diff --git a/Python/simple-method.py b/Python/simple-method.py new file mode 100644 index 0000000..4ce129f --- /dev/null +++ b/Python/simple-method.py @@ -0,0 +1,10 @@ +class PlayerCharacter: + def __init__(self,name): + self.name = name; + + def run(self): + return "Running"; + +player1 = PlayerCharacter("Larry") +print(player1.run()) +print(player1.name)