How do I read 1 value from a list
LukeShomper (50)

Can Pop(0) be used or something like Getting 1 value from a list
or should I use something like
Tea = ["Bob", "Ross", "Has", "Tea"]
And like print(FromTeaGet(0))
And then the console would say
And if I did print(FromTeaGet(1))
The console would say
I have googled it and am still confuused

You are viewing a single comment. View All
Answered by mwilki7 (1112) [earned 5 cycles]
View Answer
mwilki7 (1112)

Say you want to show everything inside the mage list (make sure the spelling/capitalization is correct):

for item in Mage:

Or using a for range loop

for i in range(0, len(Mage)):

Or maybe you just want to get something from a certain index:

myHP = Mage[0]