Budapest is a walkable city, and if you need to go further afield ... There are many ways to buy a ticket or a pass. You can get them on the BKK app, in most metro stations, some newsagents ...