1-12 튜플과 딕셔너리로 문자열 길이 출력하기

신정빈·2022년 7월 21일
0
myTuple = ("hello", "this is python", "ok, bye~")
myDictionary = {}
for i in myTuple:
    myDictionary[i] = len(i)
print(myDictionary)
profile
떠오르는 태양

0개의 댓글