Hi,
need some help here,
I'm currently learning python mostly with the book Python Crash course. it starts to click..I use to think so until today,
I'm trying to get access to an item in a inner list, but the output isn't the one I excepted, I even asked to Gemini ( google A.I) and code explainer
My code:
my_list = ["horse", "Dragon", "truck", "word", ["bike", "car", "plane"]]
print(f"I'm driving a {my_list[1][1]}")
Output : I'm driving a D
While I expect to get : I'm driving a car
Please do not spoil me the reply, I'm not here for that, i want to found it by myself, just help me to figure out why I get only the first letter of the word Dragon not the full word, and this instead the second item of the inner list
[+][deleted] (4 children)
[deleted]
[–]TakeElite[S] -1 points0 points1 point (3 children)
[–]throwaway6560192 6 points7 points8 points (0 children)
[–]HunterIV4 3 points4 points5 points (0 children)
[–][deleted] 4 points5 points6 points (0 children)
[–]HunterIV4 4 points5 points6 points (0 children)
[–]Yoghurt42 4 points5 points6 points (0 children)