How to concatenate a string with numbers in Python?
Answers
Answered by
0
Remember, Python will concatenate exactly the strings you tell it to concatenate. If you want a space in the resulting string, there must be a space in one of the two original strings. The + operator can concatenate two string values into a new string value ('Hello ' + 'World!'
Answered by
0
Answer:
Explanation:
Python supports string concatenation using + operator. In most of the programming languages, if we concatenate a string with an integer or any other primitive data types, the language takes care of converting them to string and then concatenate it
Similar questions
Math,
7 months ago
Chemistry,
7 months ago
Accountancy,
7 months ago
Computer Science,
1 year ago
Math,
1 year ago