whats the use of square brackets in the list "all" and "any" function calls?
examples below for reference. i have run the code with and without them and still get the same results so it doesn't make sense to me at all. #list functions #all function used to make comparisons through array like objects and returns true if the comparison is true for all items in the array and false if otherwise. tuple1=(67,89,34,76,90,100) if all(x<105 for x in tuple1): print("all values are greater than 105") else: print("All values are less than 105") #any function is used to make comparison through array like objects and returns true if the comparison is true for any of the items in the object else its false. dict1={"kampala":"kampala", 4:"wakiso", 9:"Mpigi", 10:"Gulu"} #note for dictionaries, it compares the keys not values. if any(x=="kampala" for x in dict1): print("we have our capital city") else: print("we dont have out caiptal city here")