(3) if you have the flowing list, what is the code to accomplish the following question? tweets = 1 "Wow, what a great d
Posted: Fri May 20, 2022 3:11 pm
question? tweets = 1 "Wow, what a great day today!! #sunshine", "I feel sad about the things going on around us. #covid19", "I'm really excited to learn Python with @JoviƔnMl #zerotopandas", "This is a really nice song. #linkinpark", "The python programming language is useful for data science", "Why do bad things happen to me?", "Apple announces the release of the new iPhone 12. Fans are excited.") "Spent my day with family!! #happy", "Check out my blog post on common string operations in Python. #zerotopandas", "Freecodecamp has great coding tutorials. #skillup" A Write a small python statement to find how many tweets does the list contain? B. Let's create two lists of words: happy_words and sad_words. We will use these to check if a tweet is happy or sad happy_words = ['great', 'excited', 'happy', 'nice', 'wonderful', amazing', 'good', 'best'l sad_words = ['sad', 'bad', 'tragic', 'unhappy', 'worst'] To identify whether a tweet is happy, we can simply check if contains any of the words from happy_words. Write a simple python code to determine the number of tweets in the dataset that can be classified as happy.
Write a simple python code to determine the number of tweets in the dataset that can be classified as happy. Write a simple python code to determine the number of tweets in the dataset that can be classified as sad.
(3) if you have the flowing list, what is the code to accomplish the following Write a simple python code to determine the number of tweets in the dataset that can be classified as happy. Write a simple python code to determine the number of tweets in the dataset that can be classified as sad.