누군가이 코드를 간단히 설명 할 수 있습니까?누군가이 코드를 설명해 주시겠습니까?
prompts = ("Enter Strength Attribute, between 1 and 50: ", "Enter Skill Attribute, between 1 and 50: ") # I already now this so no need to explain it
answers = [int(input(p)) for p in prompts]
if not all(0 < a <=50 for a in answers):
# other code here
발전기입니까?
그리고 어떻게 작동합니까?
미리 답변 해 주셔서 감사합니다.
그것은 하나의 목록 이해와 하나의 생성자입니다. –