# Please help: Key Error: ' '

**URL:** <https://discuss.python.org/t/please-help-key-error/9168>\
**Category:** Python Help\
**Tags:** help\
**Created:** [June 8, 2021, 8:51pm UTC](https://discuss.python.org/t/please-help-key-error/9168 "2021-06-08T20:51:51Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Newbie21](https://avatars.discourse-cdn.com/v4/letter/n/51bf81/32.png) [@Newbie21](https://discuss.python.org/u/Newbie21)\
**Post date:** [June 8, 2021, 8:51pm UTC](https://discuss.python.org/t/please-help-key-error/9168/1 "2021-06-08T20:51:51Z")

</div>

Hello  
I am new to learning the Python language and I am currently teaching myself by going through a ten-week bootcamp book for beginners.  
I have encounter this error: Key Error: ’ ’  
The book utilises Python 3.7 and I have installed Python 3.8.8 (not sure if the escape character for tab “\t” differs between the two…)  
I have searched the internet using Google but I have been unable to find information and a specific solution. Thank you in advance for you valuable feedback.

**This is my code:**

_# create a basic receipt printing program_  
_# create a product and price for three items_  
p1\_name, p1\_price = “Books” , 49.95  
p2\_name, p2\_price = “Computer”, 579.99  
p3\_name, p3\_price = “Monitor”, 124.89

_# create a company name and information_  
company\_name = “coding temple, inc.”  
company\_address = “283 Franklin St.”  
company\_city = “Boston, MA”

_# print company information first, using format_  
print("\t\t{ }".format( company\_name.title() ) )  
print("\t\t{ }".format(company\_address) )  
print("\t\t{ }".format(company\_city) )

* * *

KeyError Traceback (most recent call last)  
 in   
3  
4 # print company information first, using format  
----\> 5 print("\t\t{ }".format( company\_name.title() ) )  
6 print("\t\t{ }".format(company\_address) )  
7 print("\t\t{ }".format(company\_city) )

KeyError: ’ ’

---

_[View the full topic](https://discuss.python.org/t/please-help-key-error/9168)._
