age=input("나이를 입력 해 주세요: ")
weight=input("몸무게를 입력 해 주세요: ")
a=input("알약을 먹을 수 있나요? 예/아니오로 답해주세요: ")
if a="아니오" and 0<age<=1 or weight<=7.9:
print("시럽 아세트아미노펜 2.5ml & 의사와 상의 후 복용하세요")
elif a=아니오 and age<=2 or weight<=11.9:
print("시럽 아세트아미노펜 3.5ml & 의사와 상의 후 복용하세요")
elif a=아니오 and age<=3 or weight<=15.9:
print("시럽 아세트아미노펜 5ml")
elif a=아니오 and age<=6 or weight<=22.9:
print("시럽 아세트아미노펜 7.5ml")
elif a=아니오 and age<=8 or weight<=29.9:
print("시럽 아세트아미노펜 10ml")
elif a=아니오 and age<=10 or weight<=37.9:
print("시럽 아세트아미노펜 12.5ml")
elif a=아니오 and age=11 or weight<=42.9:
print("시럽 아세트아미노펜 15ml")
elif a=아니오 and age=12 or weight>=43:
print("시럽 아세트아미노펜 20ml")
else:
print("12세 이상인 경우 알약을 복용 해 주세요")
이런식으로 했는데
> Makefile:6: recipe for target 'py3_run' failed
make: *** [py3_run] Error 1
File "/goorm/Main.out", line 4
if a="아니오" and 0<age<=1
^
SyntaxError: invalid syntax
이렇게 에러가 뜨네요ㅠ 뭐가 문제일까요? 구름사이트에서 했습니당 ㅠ