We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
temp = int(input()) # valueerror invalid literal for int() with base 10
arr.append(temp)
for i in range(n):
if arr[i] == v:
print(i)
Please help me solve this problem, this code of mine works fine when am running it in Anaconda python3, but gives an error here.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Intro to Tutorial Challenges
You are viewing a single comment's thread. Return to all comments →
v = int(input())
n = int(input())
arr = []
for _ in range(n):
for i in range(n):