menu
Qammunity.org
Login
Register
My account
Edit my Profile
Private messages
My favorites
This is your code. >>> A = [21, 'dog', 'red'] >>> B = [35, 'cat', 'blue'] >>> C = [12, 'fish', '…
Ask a Question
Questions
Unanswered
Tags
Ask a Question
This is your code. >>> A = [21, 'dog', 'red'] >>> B = [35, 'cat', 'blue'] >>> C = [12, 'fish', '…
asked
May 12, 2024
39.2k
views
2
votes
This is your code.
>>> A = [21, 'dog', 'red']
>>> B = [35, 'cat', 'blue']
>>> C = [12, 'fish', 'green']
>>> e = [A,B,C]
How do you refer to 'green'?
Responses
#1 e[2][2]
#2 e(2)(2)
#3 e[2, 2]
#4e(2, 2)
Computers & Tech
high-school
Ashelkov
asked
by
Ashelkov
9.1k
points
answer
comment
share this
share
0 Comments
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
1
Answer
6
votes
The correct way to refer to 'green' in the given code is:
#1 e[2][2]
Using this notation, e[2] refers to the third element in the list e, which is [12, 'fish', 'green']. Then, e[2][2] retrieves the third element within that sublist, which is 'green'.
How would you rate this answer on a scale of 1 to 5 stars?
Ri
answered
May 18, 2024
by
Ri
8.8k
points
ask related question
comment
share this
0 Comments
Please
log in
or
register
to add a comment.
← Prev Question
Next Question →
Related questions
asked
Sep 27, 2021
84.9k
views
PLEASE HELP!! I need to have full responses pertaining to specific events, people, times, issues, and consequences/benefits. #1) Revolution of 1800: #2) Louisiana Purchase: #3) Embargo Act of 1807:
Shalu T D
asked
Sep 27, 2021
by
Shalu T D
8.5k
points
History
high-school
1
answer
1
vote
84.9k
views
asked
May 22, 2024
163k
views
What would be an example of a time when you should use conversational English? #1 in a letter to the editor of your newspaper. #2 in a research paper. #3 in a discussion thread for an online class. #4
Meva
asked
May 22, 2024
by
Meva
8.2k
points
Arts
high-school
1
answer
2
votes
163k
views
asked
Mar 24, 2024
133k
views
#1.Construct a 95% confidence interval to estimate the population mean using the following data: sample mean = 75 sample standard deviation = 20 sample size = 36 #2.What is the margin of error? #3.You
Ashutosh Singla
asked
Mar 24, 2024
by
Ashutosh Singla
7.4k
points
Mathematics
high-school
1
answer
3
votes
133k
views
Ask a Question
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.
9.4m
questions
12.2m
answers
Categories
All categories
Mathematics
(3.7m)
History
(955k)
English
(903k)
Biology
(716k)
Chemistry
(440k)
Physics
(405k)
Social Studies
(564k)
Advanced Placement
(27.5k)
SAT
(19.1k)
Geography
(146k)
Health
(283k)
Arts
(107k)
Business
(468k)
Computers & Tech
(195k)
French
(33.9k)
German
(4.9k)
Spanish
(174k)
Medicine
(125k)
Law
(53.4k)
Engineering
(74.2k)
Other Questions
“What does it mean when we “rework” copyrighted material?”
Seven basic internal components found in a computer tower
Please help me ! All you do is just put it it all in your own words ! Please this is for my reported card!i don't know how to put it in my own words because my English is not that good!
Twitter
WhatsApp
Facebook
Reddit
LinkedIn
Email
Link Copied!
Copy
Search Qammunity.org