0

Why it is not working? List(range())

there is i.e. numbers = list(range(5, 20, 2)) print(numbers) everything works fine, but when I change 20 to 21: numbers = list(range(5, 21, 2)) print(numbers) the playgroung doesn't show up the result.

11th Jul 2018, 4:27 AM
Mateusz Krystek
Mateusz Krystek - avatar
4 Antworten
+ 2
I have tried this: numbers = list(range(5, 20, 2)) print(numbers) numbers = list(range(5, 21, 2)) print(numbers) Sometimes it works. Sometimes time limit exceeded.
11th Jul 2018, 5:03 AM
Paul
Paul - avatar
0
i have information: the time limit exceeded
11th Jul 2018, 4:28 AM
Mateusz Krystek
Mateusz Krystek - avatar
0
ok, i thought that i do something wrong :)
11th Jul 2018, 4:48 AM
Mateusz Krystek
Mateusz Krystek - avatar
0
thx for the answers!
11th Jul 2018, 5:04 AM
Mateusz Krystek
Mateusz Krystek - avatar