H

HI ,

need a  little   help,i  buile  that liltte function

===============================

def Basket():
items1=[]
items1=input(“type items\n”)
options=int(input(“choose options\n”))
if options==1:
print(“items on basket are:\n”, items1)

elif options==2:
print(items1.count(’,’)+1)
Basket()

===========

i  want that  the  program will return to the start of the function,but it didn’t  work  fine so far/

 can you elp me to understand how to do so ?

that is  the full  code

I  WANT THAT TE PROGRAM RETURN  TO THE POINT  of choosing number on the  menu

============

print("""
shoping busker options
_ _ _ _ _ _ _ _ _ _ _

1: view basket
2: view number of items in basket
3: check if item is in basket
4: check qnt for item
5: delet item
6: add an item
7: view error items
8: remove conflict
9: exit
“”")
items1=[]
items1=input(“type items\n”)
options=int(input(“choose options\n”))
if options==1:
print(items1)

elif options==2:
print(items1.count(’,’)+1)

elif options==3:
item_ex=input(“type item”)
if item_ex in items1:
print(" True")
else:
print(" False")

elif options==5:
item_remove=input(“type item to remove”)
del(items[item_remove])
print(items1)

elif options==6:
item_add=input(“type item to add”)
items1.append(item_add)

You’ll want to read up on loops in python. You can use a “for” loop or a “while” loop.

For example:

while True:
    Basket()