Answers for "how to use + with strings python"

16

how to create string in python

string = "this is string"
#or
string = 'this is also string'
Posted by: Guest on April-15-2020
3

how to create a string in python

var1 = "A String"
Posted by: Guest on March-08-2020
0

how to use + with strings

# + is an overloaded operater, meaning it has more than one meaning
 
firstStr = "This is an "
secondStr = "example."
# + can join two strings end to end 
example = firstStr + secondStr
print(example)
# Output -> This is an example. 

#other things you can do
other1 = firstStr + "apple"
other2 = "Stri" + "ng"
Posted by: Guest on December-31-2020

Code answers related to "how to use + with strings python"

Python Answers by Framework

Browse Popular Code Answers by Language