I'm new to Python and I'm trying to create a very specific kind of loop. Nothing I read has really helped me. Maybe because it's not what I mean, or maybe because I don't understand. I'll try asking and hope someone understands me. I'm basically just trying to replay the four lines from the top.
def defoption():
option = ("Give an input") #<- Trying to replay this line
option_input = input("Input: ") #<- and then this
if (option_input == 'a'):
print("Option a works")
else:
return option and print("Option unavailable")
defoption()