PROGRAMMING:JMU Python finding word length
Input n words and calculate the length of each word. Sort the word length, and output the word length and its words.
###Input format:
-Line 1: number of words n
-Input n words
###Output format:
The length of the word and its words are output by line`( The length of a word is expressed in tuples`
###Input example:
```in
five
python
list
set
12 hours a day 6 days a week
tuple
```
###Output example:
```out
(3, '996')
(3, 'set')
(4, 'list')
(5, 'tuple')
(6, 'python')
```
answer:If there is no answer, please comment
###Input format:
-Line 1: number of words n
-Input n words
###Output format:
The length of the word and its words are output by line`( The length of a word is expressed in tuples`
###Input example:
```in
five
python
list
set
12 hours a day 6 days a week
tuple
```
###Output example:
```out
(3, '996')
(3, 'set')
(4, 'list')
(5, 'tuple')
(6, 'python')
```
answer:If there is no answer, please comment