강의

멘토링

커뮤니티

Inflearn Community Q&A

89choice0493's profile image
89choice0493

asked

Free Python Tutorial (Basic) - Become a Developer in 6 Hours

Data structure change

자료 구조의 변경에서 따라해도 계속 set로만 반환되는데 왜 그럴까요?

Written on

·

347

0

menu = {'커피','쥬스','우유'}
print(menu, type(menu))

munu = list(menu)   #자료 set -> list
print(menu, type(menu))

munu = tuple(menu)   #자료 list -> tuple 
print(menu, type(menu))
python

Answer 2

0

list로 바꾸실 때 부터 처음에 menu를 munu라고 잘못쓰셨네요!

혹시 저처럼 한참뒤에 질답도 참고하시면서 공부하시는 분들 위해서 댓글 답니다!

0

오타 있는거 같네요...

그냥 지나가다가 답변 답니다.ㅎㅎ

89choice0493's profile image
89choice0493

asked

Ask a question