Zyarako
|
  |
| Joined: 04 Feb 2013 |
| Total Posts: 3250 |
|
|
| 11 Aug 2015 10:04 AM |
I am beginning to learn python on this program and I have to answer this:
"Combining 2 strings using the + symbol is called concatenation.
"Use the "hello" and "world" variables to get a "Hello World" string"
hello = "Hello" world = 'World'
hello_world = type here print(hello_world) # Note: you should print "Hello World"
Help? |
|
|
| Report Abuse |
|
|
Zyarako
|
  |
| Joined: 04 Feb 2013 |
| Total Posts: 3250 |
|
| |
|
|
| 11 Aug 2015 10:08 AM |
I don't really know Python but string concatenation is combining two strings hello_world = hello+world
That's what I would guess
|
|
|
| Report Abuse |
|
|
Zyarako
|
  |
| Joined: 04 Feb 2013 |
| Total Posts: 3250 |
|
| |
|
Zyarako
|
  |
| Joined: 04 Feb 2013 |
| Total Posts: 3250 |
|
|
| 11 Aug 2015 10:10 AM |
| When I try hello+world it gives me "Use one space string '' in concatenation". |
|
|
| Report Abuse |
|
|
Zyarako
|
  |
| Joined: 04 Feb 2013 |
| Total Posts: 3250 |
|
| |
|
|
| 11 Aug 2015 10:12 AM |
I'm assuming this is code academy so I went and tested it there
Didn't realize there wasn't a space after "Hello"
hello_world = hello + " " + world
|
|
|
| Report Abuse |
|
|
Zyarako
|
  |
| Joined: 04 Feb 2013 |
| Total Posts: 3250 |
|
| |
|