【发布时间】:2022-12-04 12:35:29
【问题描述】:
the expected out put was
1 1
2 2
3 3
4 4
5 5
but the output I got is
1
1 2
2 3
3 4
4 5
5
for num in numlist:
print(num)
print(num,end=\' \')
I tried to execute this python code in python interpreter and got the wrong output
标签: python python-3.x for-loop
printand omitting one in the second one, where apparently you wanted the opposite.