Answer:
The user is prompted for input
# the input is assigned to user_tweet
user_tweet = str(input("Enter your tweet here:"))
# if statement to check if LOL is in the user_tweet
if('LOL' in user_tweet):
# If there is LOL in the user_tweet, it display
# LOL means laughing out lous
print("LOL means laughing out loud.")
# if there is no LOL in the user_tweet
# it display "There is no LOL in the tweet
else:
print("There is no LOL in the tweet")
Explanation:
The code is well commented and written in Python.
It prompts the user for tweet, then check if the tweet contains LOL, it there is LOL it displays "LOL means Laughing out loud" else it display "There is no LOL in the tweet".
Explanation: