![teamroper35](/avatars/33202.jpg)
teamroper35
21.02.2020 •
Computers and Technology
Complete the if-else statement to print 'LOL means laughing out loud' if user_tweet contains 'LOL'.
Sample output with input: 'I was LOL during the whole movie!'
LOL means laughing out loud.
Solved
Show answers
More tips
- F Food and Cooking How to Make Mayonnaise at Home? Secrets of Homemade Mayonnaise...
- C Computers and Internet Which Phone is Best for Internet Surfing?...
- F Food and Cooking Everything You Need to Know About Pasta...
- C Computers and Internet How to Choose a Monitor?...
- H Horoscopes, Magic, Divination Where Did Tarot Cards Come From?...
- S Style and Beauty How to Make Your Lips Fuller? Ideas and Tips for Beautiful Lips...
- C Computers and Internet How to Learn to Type Fast?...
- A Art and Culture Who Said The Less We Love a Woman, the More She Likes Us ?...
Answers on questions: Computers and Technology
- E English What is the figurative language in this poem? And give me an line which has figurative language and what it is....
- B Business Stoneside Inc. has provided you with the following information for its Manufacturing Overhead account at the end of the period. Actual manufacturing overhead costs incurred...
- M Mathematics Item 5 Raphael has a nickel, quarter, and dime in his left pocket. In his right pocket there are a red marble and a blue marble. Which of the following represents the...
- H History Who was killed by the guillotine during the french revolution?...
Ответ:
# 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".
Ответ:
na
Explanation: