Hi my fellow beings you might all have tried putting FLAMES between you and your crush/loved ones in our school/college days using pen and paper now why can't we try the same using a python script. If you need to play flames hereafter there is no need a paper have fun.😜.
import sys
nam1 = input("enter the name:").lower()
print(nam1)
nam1 = nam1.replace(" ", "")
print(nam1)
def passwd(nam1):
if nam1 == "your_name" or nam1 == "your_name":# if you need password protection you can give your name some have full_name
password = input("password:")
if password == "pycharm":
nam2 = input("enter the another name:").lower()
return nam2
else:
print("Access denied wrong password hahaha ")
sys.exit()
elif nam1 != "your_name" or nam1 != "your_name":
nam2 = input("enter the another name:").lower()
return nam2
collect = passwd(nam1)
def pass_2(collect):
if collect == "your_name" or collect == "your_name": # if you need password protection you can give your name some have full_name
password = input("password:")
if password == "python": # set a password
return collect
else:
print("Access denied wrong password hahaha ")
sys.exit() # this function close the program
elif nam1 != "your_name" or nam1 != "full_name":
return collect
collect2 = pass_2(collect)
f=open("filename",'a') # newfile open and store the names
f.write("\n")
f.write(nam1)
f.write("\n")
f.write(collect2)
name1 = list(nam1)
print(type(name1))
name2 = list(collect2)
count = 0
for i in range(len(name1)):
for j in range(len(name2)):
if name1[i] == name2[j]:
name1[i] = " "
name2[j] = " "
for i in name1 + name2:
if i != " ":
count += 1
print(count)
listss = ["Friend", "Love", "Affection", "Marriage", "Enemy", "Sister"]
while len(listss) > 1:
k = count % len(listss)
if k != 0:
left = listss[:k - 1]
right = listss[k:]
# print(f"{left}--------{right}")
listss = right + left
else:
listss = listss[:len(listss) - 1]
print("your relation ", listss[0])
0 Response to "Flames_code"
Post a Comment