Answer to Question #333046 in Python for Durga

Question #333046

Make it equal python program answer



In a Primary school N students are lined up in arow

1
Expert's answer
2022-04-26T14:51:35-0400

tuple=("Ben","Tom")

a tuple is handy if you don't need to modify it.

list=["Ben","Tom"]

If this row is to be mutable, use a list.

set={"Ben","Tom"}

If the students in your school are unique (need to avoid repetition), use set.

dict={"Ben":"group1","Tom":"group1"}

If any information needs to be associated with a student and their names are unique, use a dict.


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS