What is the difference between (+) and (*) operators?

Question :

What is the difference between (+) and (*) operators?

The plus (+) sign is the string concatenation operator while the asterisk (*) is the repetition operator, We can concatenate strings with the "+" operator and create multiple concatenated copies of the string with the "*" operator. The use of + and * makes sense by analogy with equivalent to 4+4+4,mnwe expect 'Save' *3 to be the same as 'Save' + 'Save' + 'Save'.


CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online Exam Quiz O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Best Website and Software Company in Allahabad Website development Company in Allahabad