DS160123 How to create class Edyoda?

class Edyoda:
def Certification(self,choice):
if choice == 1:
print(‘*congrats’)

    if choice == 2:
        print('*********Try again********')

if name == ‘Edyoda’:
result = int(input(‘Enter the No :’))

obj = Edyoda()
choice = int(input(‘Enter your no’))
obj.Certification(choice)

1 Like

@sms18680

That’s pretty awesome.
Keep sharing more interesting things.

1 Like