Report question

Question: What's the difference between hasattr() and 'attribute' in dir()?