outofrangeexception

IndexError: list index out of range in Py

IndexError: list index out of range in Py Question: I wrote the python code: def diff_4(x, h, y): """Вычисляет приближенное значение производной с помощью формулы численного дифференцирования для четырех равноудаленных узлов""" return (-y[4] + 8*y[2] – 8*y[1] + y[0]) / (12*h) x = 0.295 # начальное значение x h = 0.002 # шаг интерполяции y …

Total answers: 2

Python list index out of range testing all possible permutations

Python list index out of range testing all possible permutations Question: so the following code is meant to test every possible combination of characters untill it finds the one you typed, however at one point it says list index out of range, how do I fix this? password = input() chars = "abcdefghijklmnopqrstuvwxyz1234567890" guess = …

Total answers: 2