[Solved] Compare multiple boolean values

Updated your code try this. public boolean matchFilter(FilterTruck filter) { boolean locationMatch = filterMatchesLocation(filter); boolean matchCapacity = filterMatchesCapacity(filter); boolean filterMatchStatus = filterMatchesStatus(filter); return locationMatch && matchCapacity && filterMatchStatus; } 1 solved Compare multiple boolean values

[Solved] Python: Looping issue or indentation

Your main issue was that you weren’t prompting them in the loop. import random x = random.randrange(1,1000) counter = 0 while True: guess = int(input(“I have a number between 1 and 1000. Can you guess my number?\nPlease type your first guess.”)) if guess == x: print (“Excellent! You guessed the number in”, counter,”tries.”) break else: … Read more