인프런 영문 브랜드 로고
인프런 영문 브랜드 로고

Inflearn Community Q&A

jennieiron's profile image
jennieiron

asked

I opened my eyes and it was the day before the coding test.

Recursive Function 4 - Recursive Function Reinforcement Example

재귀함수 기본 질문 드립니다.

Written on

·

142

0

def 문자열뒤집기(text):
if text == '':
return None
else:
return 문자열뒤집기(text[1:])
print(text[0])

print(문자열뒤집기('Jeong'))


def 문자열뒤집기(text):
if text == '':
return None
else:
문자열뒤집기(text[1:])
print(text[0])

print(문자열뒤집기('Jeong'))


안녕하세요! 강의 정말 잘 보고있습니다.

제가 아직 함수의 return에 대한 기본 개념이 없어서 그런 것 같은데 상기 두 개의 함수의 차이를 모르겠습니다. 

설명 부탁드립니다!

코테 준비 같이 해요!

Answer

This question is waiting for answers
Be the first to answer!
jennieiron's profile image
jennieiron

asked

Ask a question