Writing sample program for class. Keep getting this error:
ValueError: invalid literal for int() with base 10: ''
on line 1.
Here is the block containing the error. Program runs completely fine, but testing software for school is failing it with this. What am I doing wrong?
"""
HouseSign.py - This program calculates prices for custom house signs.
"""
# Declare and initialize variables here.
# Charge for this sign.
# Number of characters.
# Color of characters.
# Type of wood.
charge = 0
numChars = int(input("How many letters do you want? "))
color = input("What color letters do you want? ")
woodType = input("What type of wood do you want? ")
if numChars < 5:
charge = charge + 0
else:
charge = charge + 0
if numChars >= 6:
charge = (numChars - 5 ) * 4
else:
charge = charge + 0
if color=="gold":
charge = charge + 15
else:
charge = charge + 0
if woodType=="oak":
charge = charge + 20
else:
charge = charge + 0
charge = charge + 35
# Write assignment and if statements here as appropriate.
# Output Charge for this sign.
print("The charge for this sign is $" + str(charge) + ".")