How do i add a variable to a string? PLEASE ANSWER


#1

I am having trouble figuring out how to add the variable Parrot to the string Norwegian Blue. If you know the answer please help. <3


#2

Variable is simply a name for a placeholder in memory (the computers memory) where you can store input like text or numbers etc.
What you are required to do is define a variable ( give it a name) and use that name to store a value.
So if you define a variable called brian and assign 10 to brian, that is what your question is all about.
Now you do the rest


#3

Are you on lesson 5:String Methods? If so, then all you have to do is create a variable called parrot, and give it the string value, then print its length to the console, like this:

parrot = "Norwegian Blue"
print len(parrot)