The picture is required, then start to do it.
product_list = ["1.iphone6s 5800元","2.mac book 9000元","3.coffee 32元","4.python 80元","4.bicyle 1500元"] salary = the INPUT ( " Please enter your salary is how much >>> " ) Print ( " Your salary is: " , salary) while True: print(product_list) PRODUCT_CODE = the INPUT ( " Please enter the product code you want to buy >>> " ) IF PRODUCT_CODE == 1 : IF salary> 5800 : Print ( " Congratulations buy success " )