For this challenge we will consider the bidding process used within online auction websites such as eBay.
Our aim is to create a system that will accept bids from the end-user, check if the bid being placed is greater than the current bid and if so, update the value of the current bid.
Check the above flowchart to understand how this algorithm will work. Based on this flowchart can you answer the following questions?
Your challenge is to use Python code to implement this algorithm.
Check the following two blog posts to see how this code could be improved further by adding validation routines when capturing user inputs. Use these techniques to make your bidding system more robust: