- 2

print( x + '.'). What is this symbol ('.') refers to?

x = "This is a string" x.replace(' is ',' was ') print (x + '.') output:- This was a string.

30th Jan 2017, 7:25 AM
Fandi Prawira Kusuma
Fandi Prawira Kusuma - avatar
1 Answer
+ 10
quotes around text meqns that it will be string(just text) . - means dot, so you adding dot(.) at the end of sentence
30th Jan 2017, 7:28 AM
WittyBit
WittyBit - avatar