파이썬 python if문 비교 간단 구현


파이썬 python if문 비교 간단 구현

코드 예시 age = 25 name = "John" if age >= 18 and name == "John": print("You are an adult named John.") if age < 18 or name != "John": print("You are either a minor or not named John.") if not (age >= 18 and name == "John"): print("You are either a minor or not named John.")

파이썬 python if문 비교 간단 구현에 대한 요약내용입니다.

자세한 내용은 아래에 원문링크를 확인해주시기 바랍니다.


원문링크 : 파이썬 python if문 비교 간단 구현