如何显示不在phyton列表中的数据?

时间:2019-02-16 01:02:46

标签: list loops for-loop if-statement

如果我把图米·马丁(Tumi Martin)和赫瑞林(heririn)放在那,如何展示未排列的马斯文(masvin)和赫瑞林(heririn)?

arrayfollower = ["tuanmi","wika"]

jumlah = int(input("Masukkan jumlah follower: "))
for follower in range(jumlah):
    follower=  input("Masukkan nama follower: ").split()

jumlah2 = int(input("Masukkan jumlah following: "))
for following in range(jumlah2):
    following= input("Masukkan nama following: ")

for following in arrayfollower:
    if following not in arrayfollower:
        pass
        print(following)
    else:
        print(following)

0 个答案:

没有答案