T
T
tarroma92018-10-20 12:06:40
Python
tarroma9, 2018-10-20 12:06:40

What causes "built-in function input" in list values?

After executing primitive and standard code, an error occurs.

companies = ["youtube", "rutube", "twitch"]


print(companies)

znach = int (input ("Введите номер ячейки слова, для добавления   "))

words = str (input ("Введите слово "))

companies.insert(znach, input)

print(companies)

['youtube', 'rutube', 'twitch']
Введите номер ячейки слова, для изменения   0
Введите слово уу
[<built-in function input>, 'youtube', 'rutube', 'twitch']

What am I doing wrong in this case, tell me please, in order to figure it out and not make a similar mistake in the future ?. "" instead of the desired value

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dkkitten, 2020-03-16
@dkkitten

Replace input with input()
Should work

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question