From 50b2ea01eeabeb0204478b6ed8234e05b548c1f1 Mon Sep 17 00:00:00 2001 From: kowsalya6-tech Date: Fri, 31 Oct 2025 18:37:01 +0530 Subject: [PATCH] Add Car class with initialization and display method --- oops | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 oops diff --git a/oops b/oops new file mode 100644 index 00000000..42cf006d --- /dev/null +++ b/oops @@ -0,0 +1,9 @@ +class Car: + def _init_(self, name): + self.car_name = name + + def show(self): + print(f"My car name is {self.car_name}") + +obj1 = Car('Tata') +obj1.show()