print( x + '.'). What is this symbol ('.') refers to? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
- 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 Resposta
+ 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