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
ret801
-9
Light Poster
Recommended Answers
Jump to PostSemantics 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
All 3 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.