My problem is that I want to use a variable from a def function, I don't know how to do it or if I even can. Here's the code I'm using
def yandn(prompt='Y/N:'):
no=1
while no==1:
ok=input(prompt)
if ok.lower()==('y'):
a=0
b=0
break
elif ok.lower()==('n'):
a=1
b=0
print('Blah Blah Blah')
c=1
while c==1:
d=input('Blah Blah:')
if d.lower() in valid:
print('Confirm', d, 'as blah.')
yandn()
from yandn import a
if a==1:
c=1
else:
c=0