(3) if you have the flowing list, what is the code to accomplish the following question? tweets = 1 "Wow, what a great d

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

(3) if you have the flowing list, what is the code to accomplish the following question? tweets = 1 "Wow, what a great d

Post by answerhappygod »

3 If You Have The Flowing List What Is The Code To Accomplish The Following Question Tweets 1 Wow What A Great D 1
3 If You Have The Flowing List What Is The Code To Accomplish The Following Question Tweets 1 Wow What A Great D 1 (57.01 KiB) Viewed 23 times
3 If You Have The Flowing List What Is The Code To Accomplish The Following Question Tweets 1 Wow What A Great D 2
3 If You Have The Flowing List What Is The Code To Accomplish The Following Question Tweets 1 Wow What A Great D 2 (25.2 KiB) Viewed 23 times
(3) if you have the flowing list, what is the code to accomplish the following 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.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply