Python Forum
.Set - Unable to understand the statement
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
.Set - Unable to understand the statement
#6
I disagree. A set is very much like a list. It is a container class that holds multiple values. You can iterate through a set. Set is mutable like a list. You can add and remove things from a set. You can test if a set contains a value, like a list. If you were to list the similarities and the differences the two are more similar than not.

In this particular example I think set is mostly being used to eliminate duplicats in vocab. Maybe some of the set operations will be used in the application, but I doubt it.
Reply


Messages In This Thread
RE: .Set - Unable to understand the statement - by deanhystad - Aug-02-2020, 08:24 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Unable to understand the meaning of the line of code. jahuja73 0 452 Jan-23-2024, 05:09 AM
Last Post: jahuja73
  Unable to understand how given code takes a fixed input value, without inputting. jahuja73 4 2,887 Jan-28-2021, 05:22 PM
Last Post: snippsat
  Unable to understand a statement in an existing code ateestructural 1 2,347 Aug-01-2020, 09:38 PM
Last Post: deanhystad
  I don't understand this return statement 357mag 4 2,905 Jul-10-2019, 07:02 PM
Last Post: perfringo
  if conditional not firing - unable to understand why simms7400 7 3,586 Oct-20-2018, 12:13 PM
Last Post: stullis
  I don't understand the parameters in a statement that uses the sh library RedSkeleton007 1 2,745 Apr-11-2018, 07:55 AM
Last Post: Gribouillis

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020