0

Concatenation

Can we perform... Integer +character..

13th Jul 2017, 3:45 PM
Roshita Patnaik
Roshita Patnaik - avatar
4 Réponses
+ 1
+= basically means : a=5 b=3 b=b+a #it can also be written as b+=a
13th Jul 2017, 4:02 PM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar
+ 2
yes u can concat string and integer.. example: string = 'string' for i in range(11): string +=str(i) print (string)
13th Jul 2017, 3:57 PM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar
0
Thank you.. We have to assign like in place operator (+=) We cannot directly assign the valu like('hello +world')
13th Jul 2017, 4:00 PM
Roshita Patnaik
Roshita Patnaik - avatar
0
Yeah got it. Thank you Sami khan
13th Jul 2017, 4:02 PM
Roshita Patnaik
Roshita Patnaik - avatar