+ 1
I dont understand what is wrong
Pi = 3.14 user.input( :) = R P = 2*Pi* R E = Pi*(R*R) print(E,P)
14 odpowiedzi
+ 4
user.input( :)???
try int(input()) instead
+ 3
sofronis If I remember correctly, when you run it directly as .py, it will quickly run and then quit and close. You may need to put a pause in the question by putting an input () at the end of the program.
+ 3
Replace-:
user.input( :) = R
By-:
R = float(input ("Enter Radius"))
You can also use 'int' in place of 'float'.
+ 1
Pi = 3'14
R = flot(input( ))
P = 2*Pi*R
E = Pi*(R^2)
print( P )
print( E )
+ 1
It is so easy
Pi =3.14
R=float(input())
P=2*Pi*R
E=Pi*R**2
print (P)
print (E)
0
𝐊𝐢𝐢𝐛𝐨 𝐆𝐡𝐚𝐲𝐚𝐥 how did i come up with user.input , thats so weird 😂
0
𝐊𝐢𝐢𝐛𝐨 𝐆𝐡𝐚𝐲𝐚𝐥 when i try to open the file in .py it closes after 1 second, do you know why?
0
𝐊𝐢𝐢𝐛𝐨 𝐆𝐡𝐚𝐲𝐚𝐥 and finally, when i press enter , one answer is next to input and the other next line, i want them both on new lines, how do i do it with \n
0
@Kiibo Ghayal
Pi = 3.14
R = int(input("Εισάγεται την ακτίνα του κύκλου:"))
P = 2*Pi* R
E = Pi*(R*R)
print(E)
print(R)
Εισάγεται την ακτίνα του κύκλου:78.5
5
0
@Kiibo Ghayal i want the 78.5 and 5 to be on different lines
ex:
Εισάγεται την ακτίνα του κύκλου:
78.5
5
0
Input line its wrong
0
Print(str(E)+"\n"+str(R))
0
If the issue is just to make it split into two lines, you can just add
"/n" at the end of the text insde the input method
0
The second line is wrong.
The valid way to declare an input in your case is:
R=int (input ())