Computer Science, asked by bulbusaha1234, 4 months ago

Write a python program to assign three different

strings and join them . eg:

String1=”aaaaa”

String2=”bbbbb”

String3=”ccccc”

Result=aaaaabbbbbccccc​

Answers

Answered by anindyaadhikari13
1

Required Answer:-

Question:

  • Write a python program to assign three different strings and join them.

Solution:

Here comes the códe.

x="aaaaa"

y=" bbbbb"

z=" ccccc"

s=x+y+z

print("Result:",s,sep="")

Explanation:

  • Assign three variables with different values. Concatenate those string and store them in another variable. At last, display the result.
  • Note: To concatenate strings, +(plus) operator is used.

Refer to the attachment for output ☑.

Attachments:
Similar questions