From ec232d3ecac92e3036a3e8fed06e726fc8e09da5 Mon Sep 17 00:00:00 2001 From: bnbong Date: Tue, 17 Oct 2023 21:12:27 +0900 Subject: [PATCH] Hello World in Python f-string --- Python/hello_world_fstring.py | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 Python/hello_world_fstring.py diff --git a/Python/hello_world_fstring.py b/Python/hello_world_fstring.py new file mode 100644 index 00000000..208eea40 --- /dev/null +++ b/Python/hello_world_fstring.py @@ -0,0 +1,4 @@ +hello = "Hello" +world = "World" +print(f"{hello} {world}") +# The f-string is a new way to format strings in Python 3.6 and above.