+ 2

Why this code is not work in sololearn app same code will be executed properly in pycharm

https://code.sololearn.com/cGT76Wvw0n6A/?ref=app

6th Feb 2020, 6:21 AM
Devang H Baroliya
Devang H Baroliya - avatar
7 odpowiedzi
+ 4
℅ 👈 this is not a percentage(%) symbol 😁 What you have used is a c/o ("care of" symbol , often used in mails) I replaced all c/o's with percentage (mod) and it works. see: num = int(input('Enter Number For You Want To Print Table:')) for i in range(1,11): print('%d * %d = %d'%(num,i,num*i))
6th Feb 2020, 6:40 AM
🇮🇳Omkar🕉
🇮🇳Omkar🕉 - avatar
+ 3
Was a joke...right? or a test? 🇮🇳Omkar🕉 passed it then👍
6th Feb 2020, 6:42 AM
Oma Falk
Oma Falk - avatar
+ 1
Very Funny Mistake, Thanks For Solutions.
6th Feb 2020, 6:44 AM
Devang H Baroliya
Devang H Baroliya - avatar
6th Feb 2020, 6:49 AM
Oma Falk
Oma Falk - avatar
0
Why we can not use this format?? print('%d * %d = %d',(num,i,num*i))
6th Feb 2020, 6:47 AM
Devang H Baroliya
Devang H Baroliya - avatar
0
The program Run Properly But I can not get desired output
6th Feb 2020, 6:58 AM
Devang H Baroliya
Devang H Baroliya - avatar
0
My code ,Dont know it is better on e or not! num = int(input('Enter Number For You Want To Print Table:')) for i in range(1,11): print(str(num)+'*'+str(i)+'='+str(num*i))
6th Feb 2020, 5:50 PM
Hanmanth Pattem
Hanmanth Pattem - avatar