【发布时间】:2019-04-30 07:58:49
【问题描述】:
我正在尝试找出我的代码中的问题:
https://repl.it/@lerowhou/VerifiablePunyRobots
你能看一下吗?
【问题讨论】:
标签: python python-3.x algorithm search
我正在尝试找出我的代码中的问题:
https://repl.it/@lerowhou/VerifiablePunyRobots
你能看一下吗?
【问题讨论】:
标签: python python-3.x algorithm search
arr = [1,2,3,4,5,6,7,8,9,10]
n = int(input())
if n in arr:
print("The element is there and it's position is %d" %arr.index(n))
else:
print("The element is not in the list")
【讨论】: