diff --git a/examples/string_format.py b/examples/string_format.py new file mode 100644 index 0000000..777c018 --- /dev/null +++ b/examples/string_format.py @@ -0,0 +1,6 @@ +fname = "John" +lname = "Doe" + +bond_string = "My name is {lastname}, {firstname} {lastname}".format(firstname=fname, lastname=lname) + +print(bond_string)