JUNIORCEDE1

Untitled

Aug 3rd, 2021
850
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Online Python compiler (interpreter) to run Python online.
  2. # Write Python 3 code in this online editor and run it.
  3. usuarios={'Martha','David','Elvira','Juan','Marcos'}
  4. administradores={'Juan','Martha'}
  5. administradores.discard('Juan')
  6. administradores.add('Marcos')
  7. for usuario in usuarios:
  8.     if usuario in administradores:
  9.         print(usuario, 'es admin')
  10.     else:
  11.         print(usuario, 'no es admin')
RAW Paste Data