write a Python function to join two strings and print it
Answers
Answered by
1
Answer:
x = "Python is " y = "awesome" z = x + y. print(z) ...
Merge variable a with variable b into variable c : a = "Hello" b = "World" c = a + b. ...
To add a space between them, add a " " : a = "Hello" b = "World" c = a + " " + b. ...
x = 5. y = 10. print(x + y) Try it Yourself »
x = 5. y = "John" print(x + y) Try it Yourself »
Answered by
1
Answer:
Python String Concatenation
- x = "Python is " y = "awesome" z = x + y. print(z) ...
- Merge variable a with variable b into variable c : a = "Hello" b = "World" c = a + b. ...
- To add a space between them, add a " " : a = "Hello" b = "World" c = a + " " + b. ...
- x = 5. y = 10. print(x + y) Try it Yourself »
- x = 5. y = "John" print(x + y) Try it Yourself »
Similar questions