+ 1
why program still works if we write. input(int) instead of int(input()) in my code, (it doesn't work in sololearn try other)
6 Antworten
0
can you post the code?
0
post code bro
0
it is not working in sololearn but i tried in Pydroid app( python editor for android)
0
import math
print(math.pi)
print("give the radius of the circle")
r=int(input())
print((math.pi)*math.pow(r,2))
x=input(int)
print("wrong")
- 1
okay, but just post it so we can understand what youre talking about. There is not enough information there
- 1
it works fine in pydroid and here. same expected response. i assume the warning at the end when running it here has to do with the way sololearn takes input