Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- myList=[5, 2,5,5,9,1,5,5]
- index = 0
- num = myList [index]
- while index < len (myList) :
- if num == 5:
- print (num)
- index = index + 1
- elif num != 5:
- index = index + 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement