Last active
July 15, 2021 00:00
-
-
Save oiojin831/0ed602192f2768625d4333e074be0174 to your computer and use it in GitHub Desktop.
day1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 빈 리스트(list)를 movies라는 변수에 할당한다. | |
movies = [] | |
# 무한 반복(loop) | |
while True: | |
print("1. 영화 추가") | |
print("2. 영화 목록 보기") | |
print("3. 종료") | |
num = input("번호를 입력해 주세요: ") | |
if num == "1": | |
movie = input("영화 제목을 추가해 주세요: ") | |
movies.append(movie) | |
if num == "2": | |
print(movies) | |
if num == "3": | |
break |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment