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.