- Learn Python in 7 Days
- Mohit Bhaskar N. Das
- 38字
- 2025-04-04 19:20:06
String concatenation
Two strings can be joined using the + operator:
print "Only way to join" + "two strings"
The following is the output of the preceding code:
C:pydev>python string_concatenation.py
Only way to join two strings