问一道Python题,检测一个list有无重复变量

Yujialuck |浏览4764次
2017/02/02 12:24

刚接触Python,对于这题很困惑,希望大神可以解答一下。

Verify that no name is repeated in `members` by writing some code that prints `"Seems OK"` if no name is repeated, or prints out a name if it is repeated.


members = ["Arnetta","Thomasena","Arnetta","Tammera","Rosamaria","Rosamaria","Lorene","Ileana","Ileana","Angela","Carletta","Mathew","Kum","Preston","Charlene","Wilson","Kathryne","Ariel","Shawn","Stacie","Coralie","Kenna","Robert","Bethel","Marc","Ferdinand","Rico","Anne","Ginette","Tamiko","Dominque","Dian","Loraine","Sharen","Onie","Temeka","Ceola","Cherly","Samual","Leeanne","Rosamond","Arianna","Calandra","Violette","Jenelle","Luisa","Desiree","Krista","Brittani","Angella","Estela","Gudrun","Maryrose"];


收藏关注

满意回答

2017/02/08 13:15

登录 后查看

xuxin2005

其他回答(0)    我来补答
4人关注该问题
+1
 加载中...