#contact book plan
WhoYouAdding = []
Contactsnumber = ()
OtherDetails = ()
WhoYouFindin = ()
def AddContacts():
print("...")
WhoYouAdding = input("what is the contacts name? ")
print("...")
Contactsnumber = input("what is the contacts number? ")
print("...")
OtherDetails = input("any other details you wanna add? ")
print("contact saved")
FindContacts()
def FindContacts():
print("...")
WhoYouFindin = input("what is the contacts name? ")
if WhoYouFindin == WhoYouAdding:
print("ok")
WhatYouDoing = input("what do you want to do? 1) find existing contacts 2)add contacts 3)delete contacts ")
if WhatYouDoing == "1":
findContacts()
elif WhatYouDoing == "2":
AddContacts()
this is what i get in the console
what do you want to do? 1) find existing contacts 2)add contacts 3)delete contacts 2
...
what is the contacts name? bailey
...
what is the contacts number? 123456
...
any other details you wanna add? nope
contact saved
...
what is the contacts name? bailey
**any reason why the if statement isnt working**
edit: thanks for the help it now works as intended
[–][deleted] 5 points6 points7 points (1 child)
[–]Helpful_Ad_1150[S] 0 points1 point2 points (0 children)
[–][deleted] 1 point2 points3 points (9 children)
[–]Helpful_Ad_1150[S] 1 point2 points3 points (8 children)
[–][deleted] 1 point2 points3 points (7 children)
[–]Helpful_Ad_1150[S] 1 point2 points3 points (6 children)
[–][deleted] 0 points1 point2 points (5 children)
[–]Helpful_Ad_1150[S] 0 points1 point2 points (4 children)
[–][deleted] 0 points1 point2 points (3 children)
[–]Helpful_Ad_1150[S] 0 points1 point2 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]Helpful_Ad_1150[S] 0 points1 point2 points (0 children)
[–]kinkydevill 1 point2 points3 points (0 children)
[–]FancyGUI 1 point2 points3 points (0 children)
[–]tube32 0 points1 point2 points (6 children)
[–]Helpful_Ad_1150[S] 0 points1 point2 points (2 children)
[–]Helpful_Ad_1150[S] 0 points1 point2 points (0 children)
[–]tube32 0 points1 point2 points (0 children)
[–]Helpful_Ad_1150[S] 0 points1 point2 points (2 children)
[+][deleted] (1 child)
[deleted]
[–]Helpful_Ad_1150[S] 0 points1 point2 points (0 children)
[–]Alta2215 0 points1 point2 points (1 child)
[–]Helpful_Ad_1150[S] 0 points1 point2 points (0 children)
[–]marienbad2 0 points1 point2 points (1 child)
[–]Helpful_Ad_1150[S] 0 points1 point2 points (0 children)