Insights Blog
-- Browse All Articles --
Physics Articles
Physics Tutorials
Physics Guides
Physics FAQ
Math Articles
Math Tutorials
Math Guides
Math FAQ
Education Articles
Education Guides
Bio/Chem Articles
Technology Guides
Computer Science Tutorials
Forums
General Math
Calculus
Differential Equations
Topology and Analysis
Linear and Abstract Algebra
Differential Geometry
Set Theory, Logic, Probability, Statistics
MATLAB, Maple, Mathematica, LaTeX
Trending
Featured Threads
Log in
Register
What's new
Search
Search
Search titles only
By:
General Math
Calculus
Differential Equations
Topology and Analysis
Linear and Abstract Algebra
Differential Geometry
Set Theory, Logic, Probability, Statistics
MATLAB, Maple, Mathematica, LaTeX
Menu
Log in
Register
Navigation
More options
Contact us
Close Menu
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Forums
Mathematics
General Math
Defining an operation such that ##1+2+3=123##
Reply to thread
Message
[QUOTE="jedishrfu, post: 6817235, member: 376845"] In some computer languages, the addition operator took on different meaning dependent on the datatypes of items being added. It acted as normal addition for numeric types and as a concatenation operator for string types. There were some purists who complained that since concatentation is not commutative that the addition operator shouldn't serve that function. However, using the addition operator for concatenation had become a defacto standard and was here to stay. In Python, one can concat in several different ways: - string1 + string2 - " ".join(string1, string2) - ... [URL]https://www.geeksforgeeks.org/python-string-concatenation/[/URL] and here's a larger set of multi language string concatentation examples: [URL]https://en.wikipedia.org/wiki/Comparison_of_programming_languages_(string_functions)#Concatenation[/URL] [/QUOTE]
Insert quotes…
Post reply
Forums
Mathematics
General Math
Defining an operation such that ##1+2+3=123##
Back
Top