Hindi, asked by kunal877432, 7 months ago

(1) बड़ भाई को अपन मन क इêाए ´यÂ दबानी पड़ती थी ?

(2) Rनकोबार प समह क Rवभã होन क बार म RनकोबाPरयÂ का ´या Rव"ास ह?

(3) लखक क मा न पर Qदन रोजा ´यÂ रखा?
plz baatado yrr questions ka answers kk​

Answers

Answered by Anonymous
3

Answer:

class check():

def __init__(self):

self.n=[]

def add(self,a):

return self.n.append(a)

def remove(self,b):

self.n.remove(b)

def dis(self):

return (self.n)

obj=check()

choice=1

while choice!=0:

print("0. Exit")

print("1. Add")

print("2. Delete")

print("3. Display")

choice=int(input("Enter choice: "))

if choice==1:

n=int(input("Enter number to append: "))

obj.add(n)

print("List: ",obj.dis())

elif choice==2:

n=int(input("Enter number to remove: "))

obj.remove(n)

print("List: ",obj.dis())

elif choice==3:

print("List: ",obj.dis())

elif choice==0:

print("Exiting!")

else:

print("Invalid choice!!")

print()

Similar questions