Ask
your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW)
14 Online
Is it possible to assign multiple values to one variable? how does it works?
Still Need Help?
Join the QuestionCove community and study together with friends!
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'
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!
Join our real-time social learning platform and learn together with your friends!
Latest Questions
Countless7Echos:
I don't know just no sketch doodle day :p finished a video already so I'm pretty
Ferrari:
Depression Hi, it's me, Jordan (ferrari). It's supposed to be the Fourth of July but I feel kinda depressed and mad at myself for no reason.
Countless7Echos:
mmm I forgot to post but hey first time trying out hyperpop art :3 super fun TW:
RAVEN69:
The hole You can't fix the hole in my heart. It's permanent. It's been broken to many times and I love it every time.
10 hours ago
8 Replies
2 Medals
25 minutes ago
12 Replies
1 Medal
1 day ago
9 Replies
5 Medals
1 day ago
0 Replies
0 Medals