0
嘿傢伙們基本上我試圖使用FOR循環來詢問演員和女演員的用戶名搜索並打印出某個演員是否在電影中以及如果他們不是在電影裏。到目前爲止,林很堅持,不知道怎麼問我的代碼爲我的演員Python 2.7使用FOR循環
print ("Which actor/actress you want to look for?")
actors []
for actor in actors:
If actor == actors:
print ("Yes, %s is in the show breaking bad") (actors,)
break
else:
print ("NO , %s is not in the show breaking bad") (actors,)
print actor