So i am trying to put value inside this text
fp = str("""```yaml\nThe floor price is {floor_price} ETH.```""")
i tried the f string but it gives error
edit: i fixed with f string after trying for long
So i am trying to put value inside this text
fp = str("""```yaml\nThe floor price is {floor_price} ETH.```""")
i tried the f string but it gives error
edit: i fixed with f string after trying for long
You can do it with the plus sign(+)
fp = "yaml\nThe floor price is " + str(floor_price) + " ETH."