samedi 13 mars 2021

zybooks 2.10.1 Finding abbreviation

I'm stuck on this challenge activity in zybooks. It's asking 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.

This is the coding I thought would work, but I think I'm missing a piece. Hint or help would be great. Thank you.

enter code hereuser_tweet = input() enter code here user_tweet = input('I was LOL during the whole movie!') enter code here print() enter code here if'LOL' in user_tweet : enter code here print('LOL means laughing out loud.') enter code hereelse: enter code here print('No abbreviation.')

Aucun commentaire:

Enregistrer un commentaire