Edinburgh buses will automatically give you a day ticket even as a tourist, Glasgow buses might do if you are on the same company bus a lot, but never really known because Glasgow has lots of different companies and there isnt a single ticket across them