why program still works if we write. input(int) instead of int(input()) in my code, (it doesn't work in sololearn try other) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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)

3rd Oct 2020, 3:26 PM
Ankit Nainwal
Ankit Nainwal - avatar
6 Answers
0
can you post the code?
3rd Oct 2020, 3:28 PM
Slick
Slick - avatar
0
post code bro
3rd Oct 2020, 3:36 PM
Karan
Karan - avatar
0
it is not working in sololearn but i tried in Pydroid app( python editor for android)
8th Oct 2020, 12:00 PM
Ankit Nainwal
Ankit Nainwal - avatar
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")
8th Oct 2020, 12:04 PM
Ankit Nainwal
Ankit Nainwal - avatar
- 1
okay, but just post it so we can understand what youre talking about. There is not enough information there
8th Oct 2020, 12:02 PM
Slick
Slick - avatar
- 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
8th Oct 2020, 12:13 PM
Slick
Slick - avatar