# This works until line 7
sex = input("Are you male(m) or female(f)? ")
me = 75 * 52
fe = 80 * 52
ca = input("What is your current age in years? ") * 52
print(sex)  # This is returning the input from the first line.
if sex == m:
    print(f"You have approximately {me - ca} weeks to live. ")
else:
    print(f"You have approximately {fe - ca} weeks to live. ")
The variable is assigned a string, but it's not working as a Boolean in the if statement.
 
     
     
     
    