Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Python Exercise Example 86

Python Exercise Example 86

Python 100 Examples Python 100 Examples

**Problem:** A program to concatenate two strings.

**Analysis:** None.

Example (Python 2.0+)

#!/usr/bin/python

-- coding: UTF-8 --

if

name

==

'

main

'

:

a

=

"

acegikm

"

b

=

"

bdfhjlnpq

"

Concatenating Strings

c

=

a

b

print

c

The output of the above example is:


acegikmbdfhjlnpq

Python 100 Examples Python 100 Examples