Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- numbers = [4,7,11,3,5]
- found = False
- counter = 0
- # check if num > 10 is inside the array
- while(found == False and counter < len(numbers)):
- if(numbers[counter] > 10):
- found = True
- else:
- counter = counter + 1
- print("Trovato:", found)
- if found == True:
- print(numbers[counter])
- # && = and
- # || = or
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement