Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def main (mizrachim):
- rshimna = mizrachim.split(",")
- print ("enter num from 1-9 plz")
- x= int(input("Please enter an num 1-9 : "))
- while x!= 9:
- if x == 1:
- print(rshimna)
- x = int(input())
- if x == 2:
- print(len(rshimna))
- x = int(input())
- if x ==3:
- print ("enter the product you wanna check about")
- y = str(input())
- if y in rshimna:
- print("its there")
- else:
- print("its not")
- x = int(input())
- if x == 4: #broken
- print("enter the product you wanna check about")
- z = str(input())
- print (rshimna.count(z))
- x = int(input())
- if x == 5:
- print("enter the product you wanna check about")
- temp_str = str(input())
- if temp_str in rshimna:
- rshimna.remove(temp_str)
- x = int(input())
- if x == 6:
- print("enter the product you wanna do the thing about")
- temp_str1 = str(input())
- rshimna.append(temp_str1)
- x = int(input())
- if x == 7:
- illigal_rshima = []
- for item in rshimna:
- if len(item)< 3:
- illigal_rshima.append(item)
- if item.isalpha() == False:
- illigal_rshima.append(item)
- print(illigal_rshima)
- x = int(input())
- if x == 8:
- new_rshima = list(set(rshimna))
- x = int(input())
- if x==9:
- exit()
- if __name__ =="__main__":
- main("cottge,gvina,ramin")
Advertisement
Add Comment
Please, Sign In to add comment