>>> i=1
>>> while i<=int(input()):
if i%2==0:
print(' ')
else:
print(i,end=' ')
i+=1
20
1
Traceback (most recent call last):
File "<pyshell#7>", line 1, in <module>
while i<=int(input()):
ValueError: invalid literal for int() with base 10: ''
>>>
>>>
이거 왜 에러뜨는건지좀 알려줄 사람있나여
python하지말고 go해라.
int(input())하면 입력받은 걸 int형으로 바꾸는거 아니야? 그러면 숫자를 입력했다고 하면 그거랑 i가 같아질때까지 while문이 돌아가야 되는데 20 입력하니까 1만 나와
하고싶어서 하는게아니여라...