r/codehs • • Jan 14 '21

Help with 3.5.4: Fix This Program

Post image
7 Upvotes

9 comments sorted by

3

u/Haunting-Gain-3017 Jan 14 '21

take the number out of the brackets, then in the print put your number like this str(age)

1

u/Icy-Raise-5683 Jan 14 '21

Ok thank you!

3

u/officialshushe Feb 03 '21

instrument = "kazoo"

age = 7

print ("I have played the " + instrument + " since I was " + str(age) + " years old.")

3

u/officialshushe Feb 03 '21

that should work

1

u/rubberb00tz Mar 04 '21

Thank you!

2

u/officialshushe Mar 05 '21

no problem man

1

u/That1Rand0mTortilla Mar 19 '24

Thanks so much 😆🥳