print( x + '.'). What is this symbol ('.') refers to? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 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