title: A dictionary that returns number of word and each word's lenght Python
body: <pre><code>`slova=0
  
   a=input(&quot;Enter a sentence: &quot;)
   str(a)
  
  for letter in a:
      slova+=1
  if letter==' ':
      slova-=1
  elif letter=='.':
      slova-=1
  elif letter==',':
      slova-=1
  elif letter=='!':
      slova-=1
  elif letter=='?':
      slova-=1
  
  print(slova)
  </code></pre>
  <p>`So I want to make a programme that takes a sentence as the input from the user and than returns how many words that sentence has, how many characters, and most important the lenght of each word. I thought about using a dictonary that uses a word name as a key and the lenght as a value.This is a programe that returns number of only letters. I also have one that returns all characters and I thought about connecting them somehow with dictionry  to get number of letter for each word but I really don't know how. Example:</p>
  <p>I am felling good.</p>
  <p>words: 4</p>
  <p>characters: 18</p>
  <p>I: 1</p>
  <p>am: 2</p>
  <p>felling: 7</p>
  <p>good: 4</p>