Advertisement
cindex1a

tiketing.py

Nov 8th, 2022
864
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.15 KB | None | 0 0
  1.  
  2. ages = {2, 5, 42, 24, 18}
  3. total = 0
  4. for age in ages:
  5.     if age < 3:
  6.         total += 0
  7.         continue
  8.     else:
  9.         total += 100
  10. print(total)
Tags: python
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement