More and more individuals are now using online social networks and resources throughout this day and age to not only interact and to communicate but also for sharing their views, experiences, ideas, impression about anything. The analysis of sentiments is the identification and categorization of these views to evaluate public opinions on a specific subject, question, product, etc. Day by day, the relevance of sentiment analysis is growing up. Machine learning is an area or field of computer science where, without being specifically programmed, computers can learn. Deep learning is the part of machine learning and deals with the algorithm, which is most widely used as Neural network, neural belief, etc., in which neuronal implementations are considered. For sentiment analysis, it compares their performance and accuracy so then it can be inferred that deep learning techniques in most of the cases provide better results. The gap in the precision of these two approaches, however, is not as important enough in certain situations, and so it is best to apply and use the machine learning approaches and methods because these are simpler in terms of Implementation