movie={ "Bed Boys for Life": {"age":16 , "height":150 ,"seats":4 ,"popcorn":"y" }, "Hubie Halloween": {"age":16 , "height":150 ,"seats":0 ,"popcorn":"n" }, "Scream": {"age":18 , "height":160 ,"seats":13 ,"popcorn":"n" }, "Transformers 6": {"age":14 , "height":140 ,"seats":17 ,"popcorn":"Y" }, "The SpongeBob Movie:Sponge on the Run": {"age":7 , "height":100 ,"seats":8 ,"popcorn":"n" }, "Sonic the Hedgehog": {"age":12 , "height":130 ,"seats":16 ,"popcorn":"y" }, "Scoob!": {"age":5 , "height":80 ,"seats":19 ,"popcorn":"n" }, "It Chapter 2": {"age":18 , "height":160 ,"seats":9 ,"popcorn":"y" }, "Fast and Furious 8": {"age":14 , "height":140 ,"seats":0 ,"popcorn":"n" }, "Tokyo Drift": {"age":14 , "height":140 ,"seats":2 ,"popcorn":"y" }, } while True: a = input("What movie do you want to watch?") if a in movie: print("We have this movie.") else: print("But we don't have this movie.") break if int(movie[a]["seats"])>0: print("And we have enough seats.") else: print("We don't have any seats left!") break b = input("How old are you?").strip() if int(b)>=int(movie[a]["age"]): print("You age is appropriate for this movie.") else: print("You age is unappropriate for this movie.") break c = input("What is your height?") if int(c)>=(movie[a]["height"]): print("You height is appropriate for this movie.") else: print("You height is unappropriate for this movie.") break d=input("Do you want to have popcorn (y/n)?").split() if d=="n" or d=="N": print("You can go to movie.") else: if d==movie[a]["popcorn"]: print("You can go to movie whit popcorn.") else: print("You can't go to this movie whit popcorn!")