Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis+ 1
list slicing prob
how come I cant slice this list whats the correct way to do it? move=['car, bike, helicopter, plane'] print(move) print("Now slicing") move[2:] print(move) It prints either the whole list or just empty []
3 Respostas
+ 6
Its because your array consists of only one string ācar, bike, helicopter, planeā. You should instead do:
move = [ācarā, ābikeā, āhelicopterā, āplaneā]
Then it should work
+ 1
Ali Zhussupov oh right thx I forgot bout this
0
happy to help)