+ 1

If i wanna print 3a.

x='a' print (3*x) gives me aaa because a is string if x is 3 then we get 9 ans but I wanna get 3a as ans can I write 3 +x

6th Oct 2018, 1:11 PM
Sachin Babji
Sachin Babji - avatar
1 Antwort
+ 7
print('3' + x)
6th Oct 2018, 1:16 PM
Potato Squad
Potato Squad - avatar