Ask coding questions

← Back to all posts
hello expert coders, i have a little issue with python.
pygrammer123

#at the end of this repl, it is showing syntax error .
#but when i run the code, it does not show anything in the #output??? what is happening?
#please look.
#at the last

the line is:

print("bye")

posted an image for your reference

this is the image.
please help me.

Voters
pygrammer123
Comments
hotnewtop
IMayBeMe

Just a bug on the replit ide, ignore it.

pygrammer123

@IMayBeMe thanks

OldWizard209

That is just a little bug on replit. You can ignore it and move on

Coder100

There's no error for me, the pyflakes linter is a bit slow so you have to wait for it to update.

pygrammer123

i am an explorer too.

pygrammer123

code:

from random import randint
score=0
numoftimes=input("how many questions to ask? \n")
tabnum=10
numoftimes=int(numoftimes)
for i in range(numoftimes):
number1=randint(2,tabnum)
number2=randint(2,tabnum)
def makq():
return f"{number1} × {number2}"
def sayans():
ans=number1*number2
return ans

print(f"score is : {score} / {numoftimes} ")
if score==numoftimes:
print(f"very good ! you have won... you got:wrongs: {score-numoftimes} , corrects: {score}")
elif score==numoftimes-1 and numoftimes==1 or score==0:
print(f"everything is wrong!! you got:wrongs: {score-numoftimes} , corrects: {score}")
elif score==numoftimes-1:
print(f"good... but 1 is wrong. you got:wrongs: {score-numoftimes} , corrects: {score}")
else:
print(f"better luck next time... \n you got:wrongs: {score-numoftimes} , corrects: {score}")
#the problem is here.
print("bye!!")