+ 1

The code below runs in pyscript and on pyscript soft. App on my smartphone but not in code play ground . Why?

code... l = int(input(" enter length:")); b = int(input(" breadth:")); if l==b: print ("it is a square") else: print("it is a rectangle") print("area is",int(l*b),"m^2")

11th Jul 2017, 2:00 PM
Siddharth Chaturvedi
Siddharth Chaturvedi - avatar
2 Réponses
+ 1
looks like I figured it out what am I supposed to enter in "Looks like your program needs input" block?? thanks for the response.
15th Jul 2017, 1:32 PM
Siddharth Chaturvedi
Siddharth Chaturvedi - avatar
+ 8
It worked for me when I entered the inputs like this 4 2
11th Jul 2017, 8:27 PM
Freetoast
Freetoast - avatar