Courses
LoginStart now
Courses
LoginStart now
+ 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

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

Costuma ter perguntas como essa?

Aprenda de maneira mais eficiente, de graça:

  • Introdução ao Python

    7.1M de alunos

  • Introdução ao Java

    4.7M de alunos

  • Introdução ao C

    1.5M alunos

  • Introdução ao HTML

    7.5M alunos

Ver todos os cursos
Quente hoje
Hofstadter a sequence code coach is not running
0 Votes
DSA doubt
1 Votes
Vote Code
1 Votes
the code for bigneer is not really what to do after coding begeneer in sololearn
0 Votes
Input errors (python)
1 Votes
Without degree job
0 Votes
Data structure using C
0 Votes
I wanna know is that what about dot net developers in future there is possible they gonna downfall in industry
0 Votes
How can I add gradient to the background
0 Votes
Welcome to my portfolio. Here you'll find a collection of my projects and creations. I specialize in [Your Specialization, e.g.
0 Votes