tags:

views:

47

answers:

4

Create a string variable that is initialized to your entire name??

Im a little lost

Thanks Kim:)

+3  A: 

You want to create a string variable with my name? Sure, here it is:

  my_name = 'Samuel Robert Dolan'

If that's not what you want, please be more descriptive in your question. :)

sdolan
I understand creating a string but Im unsure of what it means to initialize? The actual question states create a string variable that is initialized to your entire name first, middle, and last.
Kim Myers
The `my_name` declaration initializes a variable and assigns it my entire name "Samuel" (First) "Robert" (middle) and "Dolan" (last). That variable becomes of string type because of it's assigned to a string.
sdolan
Thanks so much!
Kim Myers
Python is **strongly** typed. It is also **dynamically** typed. Do not confuse the two
gnibbler
+3  A: 

I would suggest starting with the tutorial. If you have specific questions after that, then ask them.

D.Shawley
A: 

You do not "initialize" strings per se. Python does not have primitive types, therefore literals are already considered objects.

Ignacio Vazquez-Abrams