강의

멘토링

커뮤니티

Inflearn Community Q&A

juwhan10048065's profile image
juwhan10048065

asked

Introduction to Python Algorithm Problem Solving (Coding Test Preparation)

1. Palindrome string check

질문드립니다.

Written on

·

204

0

안녕하세요!

변수 s에 문자열을 저장 시켰는데

따로 list에 넣거나 list화 시키지 않았는데

upper나 인덱스 같은것을 사용할 수 있는건가요??

int형은 저런식으로 접근이 안되는데 

str형은 좀 다른가요?

python코테 준비 같이 해요!

Answer 1

0

codingcamp님의 프로필 이미지
codingcamp
Instructor

안녕하세요^^

네. 파이썬에서 문자열은 인덱싱도 되고, 슬라이싱도 되고 다른언어의 배열처럼 할 수 있습니다.

juwhan10048065's profile image
juwhan10048065

asked

Ask a question