Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fav_nba_players = ["Steve Nash", "Michael Jordan", "LeBron James", "Dirk Nowitzski", "Hakeem Olajuwon"]
- for player in fav_nba_players:
- if player == "LeBron James":
- break # 碰到 "LeBron James" 就離開迴圈
- else:
- print(player)
Add Comment
Please, Sign In to add comment