+ 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 Réponse
+ 7
print('3' + x)
6th Oct 2018, 1:16 PM
Potato Squad
Potato Squad - avatar
Aujourd'hui en vedette
.
1 Votes
What?
0 Votes
HTML
0 Votes
FRC Coding?
1 Votes
Quiz duel
0 Votes
AI
2 Votes
help
0 Votes
APIs
1 Votes
Create Agent
0 Votes