Python
print(*)
leta
2022. 1. 24. 13:04
https://stackoverflow.com/questions/61562134/in-print-function-in-python
* in print function in python
text = 'PYTHON' for index in range(len(text)): print(*text[:index + 1]) The * in the print function is producing a space between the characters on sys.stdout. Can someone please tell me what i...
stackoverflow.com
리스트 원소나 문자열 각각의 문자를 한 칸 씩 띄운 후(공백) 출력
ex.
ans = [1, 2, 3] 인 경우
print(*ans) 는
1 2 3
을 출력한다.