0

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

Trayansh Agarwal
  • 97
  • 1
  • 1
  • 8

1 Answers1

0

You can do it with the plus sign(+)

fp = "yaml\nThe floor price is " + str(floor_price) + " ETH."
Mario Khoury
  • 372
  • 1
  • 7