Super beginner to Python
here. Here's my code so far:
def make_camel_case(word_string):
word_list = word_string.split(’ ’)
output = ’’
for word in word_list:
word_upper = word[0].upper()
output = output+word_upper
return(output)
def camel_case():
phrase1 = ’purple people eater’
phrase2 = ’i can\’t believe it\’s not butter’
phrase3 = ’heinz 57 sauce’
print(make_camel_case(phrase1))
print(make_camel_case(phrase2))
print(make_camel_case(phrase3))
camel_case()
And here is my desired output:
purplePeopleEater
iCan’tBelieveIt’sNotButter
heinz57Sauce
My primary error message is invalid character in identifier in line 2
After an edit my code runs properly, but outputs:
PPE
ICBINB
H5S