Computer Science, asked by dhairyakumar25223, 15 hours ago

Draw flow to accept user first name and last name and print the full name using string operators concatenation and print the user name 3 times using String operator Replication *

Answers

Answered by wondergirl10
0

Answer:

 

TUTORIALS

HOME  PYTHON  PYTHON STRING OPERATOR

 Table of Contents

Python String Operator

Category: Python , July 7 2021

0

0

8 min read

Author

Hafeezul Kareem Shaik

Reviewers

Faisal Khan

Previous Lesson

Python Input Function

Next Lesson

Python Bitwise Operators

We have seen how to perform arithmetic operations on integer and floats. We can use + and * operators on a string as well. However, it behaves differently. Let's have a quick look at various types of Python String Operator :

First is Python String Operator - Concatenation OperatorSecond is Python String Operator - Replication OperatorPython String Operator - Concatenation Operator

The addition operator + is also known as a concatenation operator when applied on two python strings.

What is concatenation? The meaning of the word concatenation tells everything about the functionality. It links in a chain or series. In other words, the concatenation operator connects one string at the end of the other.

For example, let's have a look at some expressions:

"Tools" + "QA" => "ToolsQA""Hi, " + "I'm from ToolsQA" => "Hi, I'm from ToolsQA""Learning " + "Python" => "Learning Python"

The general expression of the concatenation operators is.

string + string

Let's get into the coding.

# concatenation two strings name = "Tools" + "QA" print(name)

Similar questions