Implement a function that calculates the total cost of a journey based on the mode of transportation used. The journey is represented as a list of segments, where each segment can either be a string (representing a tube journey) or a non-string item (representing a bus journey). The function should apply the following fare rules:
Each tube segment costs £2.40.
Each bus segment costs £1.50, but only the first bus journey in a row of bus segments is counted towards the fare. Subsequent bus segments in a row do not incur additional costs until a tube segment appears.
Input/Output Requirements
Input: A list called journey containing either strings (for tube journeys) or non-string items (for bus journeys).
Output: A string representing the total cost of the journey formatted in pounds (e.g., '£X.XX').
Implementation Notes
The function should be implemented in a file named /app/solution.py.
Ensure that the function correctly handles various combinations of tube and bus segments.
The output should always display two decimal places, following the currency format.