본문 바로가기

IT 세계의 후아

검색하기
IT 세계의 후아
프로필사진 후__아

  • 전체 (55)
    • Coding (43)
      • Python (27)
      • Study (15)
      • Algorithm (1)
    • Recording (12)
      • NewsScrap (10)
      • 취준기록 (0)
      • Etc (2)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2025/06   »
일 월 화 수 목 금 토
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30
Tags
  • AI
  • 이중리스트
  • 프로그래머스
  • 파이썬
  • 문자열
  • OpenAI
  • 랭체인
  • 생성형AI
  • dict
  • listcomprehension
  • 경제신문스크랩
  • llm
  • 데이콘경진대회
  • Ord
  • langchain
  • 리스트
  • 백준
  • rag
  • Python
  • chr
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록ZIP (1)

IT 세계의 후아

[python]zip 활용 - dict, 리스트, 문자열, 반복문

※ for N in zip(iterable1, iterable2, ...)내장함수로, iterable 객체 여러개를 받아 tuple로 묶어주는 역할for z in zip("abc", [1,2,3]):      print(z)("a", 1)("b", 2)("c", 3) ※ for k,v in dict(zip(리스트1, 리스트2)key: 리스트1, value: 리스트2# 프로그래머스 수 조작하기1# control: 문자열 'wdsaaw...'def solution(n, control): w = control.count('w') s = control.count('s') d = control.count('d') a = control.count('a') r..

Coding/Python 2024. 4. 17. 23:48
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바