BitCoder

  • 홈
  • 태그
  • 방명록

Palindrome 1

python isPalindrome 함수

회문(回文) 또는 팰린드롬(palindrome)은 거꾸로 읽어도 제대로 읽는 것과 같은 문장이나 낱말, 숫자, 문자열(sequence of characters)을 말합니다. 파이썬프로그래밍언어를 이용하여 회문을 검사하는 파이썬 함수를 소개합니다. 다음은 소스코드입니다. def isPalindrome(word): for i in range(0, int(len(word)/2)): if word[i] != word[len(word)-1 - i]: return False return True print(isPalindrome("기러기")) print(isPalindrome("소주 주소")) print(isPalindrome("토마토")) print(isPalindrome("eye")) print(isPalind..

Python 2022.06.02
1
더보기
250x250
프로필사진

코딩 공부, 자작 프로젝트 기록

  • 분류 전체보기 (66)
    • Python (18)
      • PyQt (0)
    • Web (11)
      • HTML (0)
      • CSS (0)
      • Javascript (5)
      • Node.js (4)
      • React (1)
      • PHP (1)
      • Next.js (0)
    • Arduino (1)
    • DIY (4)
      • 6 Axis Robot (4)
      • 3D 프린터 (0)
      • CNC (0)
    • Excel (3)
    • Autohotkey (3)
    • Windows (12)
    • Linux (3)
    • Database (0)
    • C, C++ (1)
    • 보안 (4)
    • 제어 (0)

Tag

PowerShell, windows service, node.js, 자바스크립트, eventlog, 파이썬, 오토핫키, 이벤트로그, nodejs, 윈도우, 엑셀, windows, javascript, 윈도우서비스, Driver, 파워쉘, 서비스, 드라이버, python, windows driver,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

Copyright © Kakao Corp. All rights reserved.

티스토리툴바