- 1

Python program which accept the radius of a circle from the user and compute the area

from math import pi r = float(input ("enter a raduis")) print ( "for a circle with" + str(r) + "of raduis") A = (pi*r*r) print("The area is :" + str(A)) 1 How can I do If I don't want the user to see " enter the radius" part on the screen 2 how can I do to have it go to the next line ( when I use (/n) it doesn't work I get an error message) 3 there any way to create space so that the program can be more readable on the screen Thank you for the motivation

22nd Nov 2016, 1:12 PM
TROISIEME
TROISIEME - avatar
1 Odpowiedź
0
1. leave the parentheses after input blank. 2. The print function automatically inserts a new line in this program, I think. 3. It looks just fine in my opinion, but you could double space I guess.
22nd Nov 2016, 2:06 PM
Seiko
Seiko - avatar