execute if entity @s[tag=s] run function items_py:shop/buy/weapon/s
execute if entity @s[tag=a] run function items_py:shop/buy/weapon/a
execute if entity @s[tag=b] run function items_py:shop/buy/weapon/b
execute if entity @s[tag=c] run function items_py:shop/buy/weapon/c
execute if entity @s[tag=d] run function items_py:shop/buy/weapon/d
