목록2024/08/31 (1)
꼬물꼬물 개발자
list, tuples, dictionary
# listday_of_week = ["Mon", "Tue", "Wed", "Thu", "Fri"]print(day_of_week[2])day_of_week.append("sun")print(day_of_week)day_of_week.remove("sun")print(day_of_week)day_of_week.clear()print(day_of_week)# Tuples : 불변days = ("Mon", "Tue", "Wed", "Thu", "Fri")print(days[-1])# dictionary : kdy - value 키-값 player = { 'name': 'gowoon', 'age': 42, 'alive': True, 'fav_food': ["피자", "햄버거"]}print(player)..
Python
2024. 8. 31. 04:28