# ITP1_4_B
import math
r = float(input())
print(r*r*math.pi,2*r*math.pi)
ITP1_4_C: Simple Calculator
a,op,bを受け取り演算子に対応する計算結果を返します.
終了条件はop=="?"です.
# ITP1_4_C
while True:
a,op,b = input().split(" ")
a,b = int(a),int(b)
# 終了条件
if op == "?":
break
if op == "+":
print(a+b)
elif op == "-":
print(a-b)
elif op == "*":
print(a*b)
elif op == "/":
print(a//b) # 小数点以下切り捨てに注意
ITP1_4_D: Min, Max and Sum
入力に対して最小値 最大値 和を返します.
リストにして処理してしまうのが簡単です.
# ITP1_4_D
n = int(input())
num_list = list(map(int,input().split(" ")))
print(min(num_list),max(num_list),sum(num_list))