Make it equal python program answer
In a Primary school N students are lined up in arow
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.
Comments
Leave a comment