# String templates

**URL:** <https://forum.modular.com/t/string-templates/1998>\
**Category:** General\
**Created:** [July 21, 2025, 12:05pm UTC](https://forum.modular.com/t/string-templates/1998 "2025-07-21T12:05:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![manideepla](https://sea1.discourse-cdn.com/flex001/user_avatar/forum.modular.com/manideepla/32/688_2.png) [@manideepla](https://forum.modular.com/u/manideepla)\
**Post date:** [July 21, 2025, 12:05pm UTC](https://forum.modular.com/t/string-templates/1998/1 "2025-07-21T12:05:18Z")

</div>

Hi there Mojicians!

I’m getting my hands dirty with Mojo, but I’m unable to do what seems to be a simple thing.

 ![Screenshot 2025-07-21 at 5.20.41 PM](https://us1.discourse-cdn.com/flex001/uploads/modular/original/1X/a47c5671f7383f40740eb00d9559ea30db54c2e9.png)

The indenation looks fine (I believe I read that Mojo doesn’t demand 4-space indentation like Python does though).

Am I doing the templating right? I browsed through the docs, but cannot find anything relevant.

Thanks in advance!

Mojo version is: Mojo 25.5.0.dev2025070705 (c35fb02a)

---

<div class="post-metadata">

**Author:** ![melodyogonna](https://sea1.discourse-cdn.com/flex001/user_avatar/forum.modular.com/melodyogonna/32/33_2.png) [@melodyogonna](https://forum.modular.com/u/melodyogonna)\
**Post date:** [July 21, 2025, 1:54pm UTC](https://forum.modular.com/t/string-templates/1998/2 "2025-07-21T13:54:48Z")

</div>

f-strings are not supported at this moment.

---

<div class="post-metadata">

**Author:** ![manideepla](https://sea1.discourse-cdn.com/flex001/user_avatar/forum.modular.com/manideepla/32/688_2.png) [@manideepla](https://forum.modular.com/u/manideepla)\
**Post date:** [July 21, 2025, 2:14pm UTC](https://forum.modular.com/t/string-templates/1998/3 "2025-07-21T14:14:23Z")

</div>

Thanks, I got it working this way:

```def
	var x: Int = 3000
	var twice: Int = x * x
	print("square of", x, "is:", twice)

```
