Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 67 Online
OpenStudy (anonymous):

Is it possible to assign multiple values to one variable? how does it works?

OpenStudy (anonymous):

If you have a list of numbers/strings you can use a List. example: listexample = [3, 5, 6, 'taco', 'burrito'] You can access individual values in the list by using their place in the list starting from 0 (place 0: 3, place 1: 5, place 4: 'burrito') print listexample[0] would print 3 print listexample[3] would print 'taco'

OpenStudy (anonymous):

thanks much

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Latest Questions
gelphielvr: (algebra 1) arithmetic sequences question in the replies
2 hours ago 6 Replies 1 Medal
gelphielvr: What animal never sleeps?
5 hours ago 2 Replies 1 Medal
gelphielvr: What 2 metals are liquid at room temperature?
3 hours ago 6 Replies 0 Medals
gelphielvr: What is the only planet not named after a god?
5 hours ago 4 Replies 0 Medals
Thayes1287: Please help me
7 hours ago 27 Replies 3 Medals
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!