a*3 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

a*3

i typed in a3 and i got it wrong. Can you please help me.

18th Nov 2019, 2:55 PM
Sachiev Nair
Sachiev Nair - avatar
3 Answers
+ 6
What do you want to achieve? Only a multiplication of a variable and a number? a = 5 print(a * 3) # ouput: 15
18th Nov 2019, 3:18 PM
Lothar
Lothar - avatar
+ 4
Program does not read a3 as a*3, one good reason for that is that a3 could be another variable.
18th Nov 2019, 4:34 PM
Seb TheS
Seb TheS - avatar
+ 3
Can you share your code here, or explain your problem further I think the information is too less for me to suggest any solution
18th Nov 2019, 3:25 PM
Arsenic
Arsenic - avatar