can someone show me the syntax for inserting Number literals and strings into python strings like the print statement for example(i.e print("string %s"),(SumNum)) .. I have forgotten. and could someone explain the difference between syntax and semantics to me , i have forgotten that also XD
Semantics is what you say; syntax is how you say it.
You can insert numbers and strings into other strings for later output in a variety of ways. Generally, you will use the format mini-language and the modulus operator (%). For very simple cases it is very easy. For instance