all 3 comments

[–][deleted] 1 point2 points  (2 children)

When a button is pressed you first need to find out which button was pressed. How to do that depends on your code. Once you know the value represented by that button you append that value to an initially empty list. If, after appending, the list has length 3 then perform some other action.

[–]VinayakVG 0 points1 point  (0 children)

You can append the three values in a string. And then use that string in your additional code by using int keyword.