title: What is wrong with my code on calculating area of square/rectangle?
body: <pre><code>shape = input("Square or Rectangle ? : ")
  
  width = float(input("Enter The Width : "))
  
  if input in shape :
  
   "Square, square"
  
   area = width * width
  
   print ("")
  
   print ("The Area Of The Given Square is" + area)
  
  
  
  
  
  
  
  
  length = float(input("Enter The Area : "))
  
  area = width * length
  
  print ("")
  
  print ("The Area Of The given Rectangle is ", area)
  
  input("Enter To Exit")
  </code></pre>
  
  <p>I am new to Python scripting and wanted to make a simple py that calculates the area of a square or rectangle. But when I open it, it asks for the "Square or Rectangle ?" I input Square, then it asks for width and it abruptly closes. Same happens when I put in Rectangle. Again I am a noobie at python and just going off of what I can find. I am not sure on how to frame a question for this to search and find an answer so I resorted to making one.</p>