Longest word

Report a typo

Find the longest word in a pair and print its length.

The variables word1 and word2 are defined for you.

Tip: Make use of len() and max() functions.

Sample Input 1:

Riddikulus
Alohomora

Sample Output 1:

10

Sample Input 2:

earthquake
Supercalifragilisticexpialidocious

Sample Output 2:

34
Write a program in Python 3
word1 = input()
word2 = input()

# How many letters does the longest word contain?
___

Create a free account to access the full topic