# Secret Message in Python

## Problem statement:

We need to create a secret message in Python by mirroring a string. We will be given a string, first, we need to convert it to lowercase, then we need to find its mirror string. How? We need to break 26 alphabets into two half-equal parts, and place them above one another, now check what is the first letter of your string, check that letter in the two half parts of the alphabets, and find its mirror letter. Check the image below for a better understanding.

For example, for copyassignment, the output will be=> xlkbzhhrtmnvmg.

## Code for Secret Message in Python:

```# declaring a string
mystr = 'CopyAssignment'

#making mystr to lower case
mystr = mystr.lower()

# storing alphabets in two half parts, to be used for mirroring
alphabets1 = 'abcdefghijklm'
alphabets2 = 'zyxwvutsrqpon'

# declaring a list to store new string letters
strlist = []

# looping over string
for i in mystr:
# declaring a counter
ctr = 0
if i in alphabets1:
for j in alphabets1:
if i==j:
strlist.append(alphabets2[ctr])
else:
ctr += 1
else:
for j in alphabets2:
if i==j:
strlist.append(alphabets1[ctr])
else:
ctr += 1

# printing the list by conerting it to string
print(''.join(strlist))```