사용자로부터 숫자 (n)를 얻습니다. 그냥파이썬에서 n 개의 문자열 생성
n = int(input())
그 후, 나는 N 문자열을 생성하고 사용자로부터 그 값을 얻을해야합니다.
i = 0;
while (i < n):
word = input() # so here is my problem:
# i don't know how to create n different strings
i += 1
어떻게 N 문자열을 만드는 방법?
문자열 저장에 대해서는 https://docs.python.org/2/tutorial/datastructures.html – EdChum
과 관련이 없지만이 경우에는 for-loops를 사용하는 것이 더 좋은 Python 스타일입니다. –
['list'] (https://developers.google.com/edu/python/lists)를 사용할 수 있습니다. –