# Do formatted strings work in makecode?

**URL:** https://forum.makecode.com/t/do-formatted-strings-work-in-makecode/17661
**Category:** Help
**Created:** [January 29, 2023, 11:56pm UTC](https://forum.makecode.com/t/do-formatted-strings-work-in-makecode/17661 "2023-01-29T23:56:27Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Salex](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/salex/32/15835_2.png) [@Salex](https://forum.makecode.com/u/Salex)
#### Post date: [January 29, 2023, 11:56pm UTC](https://forum.makecode.com/t/do-formatted-strings-work-in-makecode/17661/1 "2023-01-29T23:56:27Z")

</div>

![Screenshot 2023-01-29 at 17.51.51](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/3/365a9e50a3a9ead8c7b95c13030a47084b59c143.png)  
It just shows the string using the curly brackets

---

<div class="post-metadata">

### Author: ![AlexK](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/alexk/32/33339_2.png) [@AlexK](https://forum.makecode.com/u/AlexK)
#### Post date: [February 1, 2023, 5:13pm UTC](https://forum.makecode.com/t/do-formatted-strings-work-in-makecode/17661/2 "2023-02-01T17:13:42Z")

</div>

The master documentation for MakeCode’s TypeScript interpreter [1] indicates that templated strings are supported. Prefix the curly braces with a dollar sign and try using backticks around your string templates. [2]

* * *

[1] [https://makecode.com/language](https://makecode.com/language)  
[2] [https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template\_literals](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals)

---

<div class="post-metadata">

### Author: ![Sarge](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sarge/32/19590_2.png) [@Sarge](https://forum.makecode.com/u/Sarge)
#### Post date: [February 1, 2023, 7:03pm UTC](https://forum.makecode.com/t/do-formatted-strings-work-in-makecode/17661/3 "2023-02-01T19:03:08Z")

</div>

That’s only for JS formatted strings. The website above also cites that f-strings are currently unsupported in python, and I doubt the devs will change it. The str.format() method also seems to be missing so I feel like the only way to go about this is either concatenation (the ugly way) or the .join() method. Not ideal, but it is how it is I suppose.

---

<div class="post-metadata">

### Author: ![Sarge](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sarge/32/19590_2.png) [@Sarge](https://forum.makecode.com/u/Sarge)
#### Post date: [February 1, 2023, 7:03pm UTC](https://forum.makecode.com/t/do-formatted-strings-work-in-makecode/17661/4 "2023-02-01T19:03:24Z")

</div>

Honestly, coming from a Python dev, my suggestion is you drop Python and use JS for MakeCode. I know it can be hard to make such a shift if you’ve never worked in JS before but it will make text code programming much more convenient because JS is native to pxt/makecode and it’s way less restrictive.
