0
Why my code doest work properly?
I just have upload a code but I dont know what's the problem with it, in my pc works perfectly but when I try to run it on this app show me an error message. Can you help me to understand whats wrong with it? I want to share some of my codes in Python. Thanks.
5 Risposte
+ 4
Please post your code that we can try it. Be sure you saved it on your computer. Please say also the exception you got
+ 2
your code is running fine I think you does not enter your inputs in right way. please inter your inputs like this.
1
5
2
each of input should be separated with line.
0
Hi Daniele the code is in my profile is my first code for share anyway when I run it just ask me for the first data input don't ask me about the second data input and that is the error that I have, try to run my code in your cellphone, this is the code:
table = int(input("Enter number of table to multiply: "))
start = int(input("Enter the start number: "))
end = int(input("Enter the final number: "))
y = table * start
while start <= end:
print("%d X %d = %d" % (table, start,y))
start += 1
y += table
0
Hi Maninder Singh, you mean that the line in my code is too long ? I just write it in a single line but the statment is too long for write it in one line. Then should I use a line to separate each input? I think is an editor error.
0
The code playground takes all inputs at the beginning of execution. This means you need to put all inputs required by the program in the same input box. Make sure each input is on a new line.