Advertisement
DaniDori

Untitled

Apr 20th, 2023
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. import random
  2. a=[]
  3. for i in range(10):
  4. a.append(int(random.random()*20))
  5. for i in range(10):
  6. print( a[i], end = ' ')
  7. print()
  8. for i in range(10):
  9. if(a[i]%2==0):
  10. print( a[i], end = ' ')
  11.  
  12.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement