Computer Science, asked by khushijaiswal02, 4 months ago

write a Python function to join two strings and print it​

Answers

Answered by persiashree
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 lakshaysoni01279473
1

Answer:

Python String Concatenation

  1. x = "Python is " y = "awesome" z = x + y. print(z) ...
  2. Merge variable a with variable b into variable c : a = "Hello" b = "World" c = a + b. ...
  3. To add a space between them, add a " " : a = "Hello" b = "World" c = a + " " + b. ...
  4. x = 5. y = 10. print(x + y) Try it Yourself »
  5. x = 5. y = "John" print(x + y) Try it Yourself »
Similar questions