python code for FLAMES

Python code for Flames

As a human,I always wants to know what others feel about me.In my childhood,my friends and I used to find flames with our crushes.
So,I thought that it would be good,if we can show our crush how much we love her..by writing code
for FLAMES.
So,here's the basic code for finding FLAMES using python.
As we all know,Flames is for friendship,love,attraction,marriage,engagement,soulmate.
Python Code:

def hell(l,m):
    del m[l-1]
    if len(m)==1:
        l=k
        return l,m
    else:
        m=m[l-1:]+m[0:l-1]
        l=k
        return l,m
def dus(l,m):
    if l<=len(m):
        l,m=hell(l,m)
        if len(m)==1:
            print(t[m[0]])            
        else:
            dus(l,m)        
    else:
        l=l-len(m)
        dus(l,m)
m=['F','L','A','M','E','S']
a=input('Enter the name of your crush in small letters\n')
b=input('Enter your name in small letters\n')
t={'F':'friends',
   'L':'''you are a lucky person,{} is loving you.
don't waste time and tell the truth
which has been hidden in your heart for ages'''.format(a),
   'A':'angry',
   'M':'marriage',
   'E':'engagement',
   'S':'soulmate'
   }
c=[i.strip(' ') for i in a]
d=[x.strip(' ') for x in b]
e=''.join(c)
e=list(e)
f=''.join(d)
f=list(f)
l=len(e)+len(f)
for i in range(len(e)):
    for j in range(len(f)):
        if e[i]!=None:
            if f[j]==e[i]:
                l=l-2
                f[j]=None
                e[i]=None
                break
k=l
dus(l,m)

Open for suggestions.
Thank u guys.

Comments

Popular posts from this blog

MESSAGE sending problem FIXED for all networks and mobiles

star patterns in python