Daily questions 2019.9.25

# Coding = UTF-. 8 
"" "Topic: recursive function call, the inputted five characters in reverse order printed" ""

CharNum = []
DEF getChar ():
for I in Range (. 5):
x = input ( "Please enter the characters")
charNum.append (X)

DEF OUTPUT (NUM, len):
IF len == 0:
return
the else:
Print (NUM [len -. 1])
len - =. 1
OUTPUT (NUM, len)

IF __name__ == '__main__':
getChar ()
length = len (CharNum)
the OUTPUT (CharNum, length)

# life is short, I used Python

Guess you like

Origin www.cnblogs.com/walxt/p/11587098.html