Re: [Tutor] Finding the largest gap in tuple between two lists.

2018-11-18 Thread Peter Otten
Mats Wichmann wrote: > 1. From an endpoint pair - say Buy/Levski and Sell/Olisar, you need the > common items. No point in looking further at items that can't both be > bought at the source and sold at the destination. Fortunately, Python > sets are really good at this, but first you have to ext

Re: [Tutor] Finding the largest gap in tuple between two lists.

2018-11-18 Thread Avi Gross
Harry, Your code may not have come through as intended as the formatting often combined lines. It may help to think about the question before giving deeper answers. You have two places and two sets of goods with prices. You want the intersection of those two to focus on what goods are in both. T

Re: [Tutor] Finding the largest gap in tuple between two lists.

2018-11-18 Thread Mats Wichmann
On 11/17/18 6:55 PM, Harry Oneill wrote: > Hello there everyone i hope you are all doing fantastic. > > Im currently working on a little program that is designed to do a basic > function to help me to trade efficiently within the game Star Citizen: > > #1 take two inputs ( location and destinati