11.5k views
10 votes
Write a Python function that join the two string and print it ​

2 Answers

6 votes

Answer:

Nothing complicated

See attached images

Write a Python function that join the two string and print it ​-example-1
User Dragonsoul
by
4.7k points
3 votes

Answer:

string1 = "this is string 1"

string2 = " this is string 2"

print(string1 + string2)

Step-by-step explanation:

the string1 variable is assigned with a string value(aka. str)

string2 is also a variable assigned with a slightly different string value

the 3rd line then prints string 1 and 2 to the console.

User Rjmunro
by
4.6k points