第一章
s="Python语言简单易学"
print(s.encode("utf-8"))
A=int(input())
B=int(input())
C=A+B
print(C)
a, b, c = map(int, input().split())
print(b*b-4*a*c)
第二章
x=input()
x=float(x)
if x==0:
print('f(%.1f) = %.1f'%(x,x))
else:
print('f(%.1f) = %.1f' %(x,1/x))
n=input()
x=int(n)
if x<0:
print("Invalid Value!")
if x<=50 and x>0:
y=x*0.53
print("cost = %.2f"%y)
if x>50:
z=50*0.53
x=x-50
y=z+x*0.58
print("cost = %.2f"%y)
n=int(input())
i=a=0
b=1
while i<n:
if b%2==1:
a=a+b/(2*i+1)
i+=1
else:
a=a-(i+1)/(2*i+1)
i+=1
b+=1
print("{0:.3f}".format(a))
list = input().split(" ")
olist = []
s = 0
for i in list:
if int(i) > 0:
olist.append(int(i))
for i in olist:
if i % 2 != 0:
s += i
print(s)
a,b=map(int,input().split())
i=su=c=0
while i<b:
c=10**i+c
su=su+a*c
i+=1
print("s = %.f"%su)
第三章