Python 질문 while not str

조회수 1507회
name = ''

while not name:                                                #### ➊
    print('Enter your name:')    
    name = input()

print('How many guests will you have?')
numOfGuests = int(input())

if numOfGuests:                                                #### ➋
    print('Be sure to have enough room for all your guests.')  #### ➌     

print('Done')

이 코드에서 while not namewhile not name != "이라 들었는데 while not name != " 이게 name이 거짓이 아닌게 아닐때 까지 라는 뜻 인가요? 너무 헷갈리는데 무슨 뜻인지 설명좀 해주시면 감사하겠습니다

1 답변

답변을 하려면 로그인이 필요합니다.

프로그래머스 커뮤니티는 개발자들을 위한 Q&A 서비스입니다. 로그인해야 답변을 작성하실 수 있습니다.

(ಠ_ಠ)
(ಠ‿ಠ)