How to add strings using ‘+’

CODE




How to add strings using ‘+’

Write a single python statement that combines the three strings "my name is","joe" and "warren"(plus a couple of other small strings) into one larger string "my name is joe warren".and prints the result.

>>>print("My name is "+"Joe"+" warren")

Output:
My name is Joe warren

How to add strings using ‘+’ How to add strings using ‘+’ Reviewed by Unknown on December 13, 2018 Rating: 5

No comments:

If you have any doubt or query ,comment below:

Programming copyright © 2018-19. Powered by Blogger.