Python的计算命令 [英] Python commands of computing

查看:85
本文介绍了Python的计算命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

1)程序提示用户输入销售价值,并附上以下声明:

在2013年8月输入公司销售额的美元价值:



2)销售价值应存储在浮动类型的变量中



3)根据6计算销售税销售额的百分比



4)按以下格式打印生成的销售税:

销售税为2013年8月的$



我的代码我不知道如何做第3步:



1) The program prompts the user to enter the value of the sale with the following statement:
"Enter the value of the company’s sales in dollars in August 2013:"

2) The sale value should be stored in a variable of type float

3) Compute the sales tax based on 6% of the sale

4) Print the resulting sales tax in the following format:
"The sales tax is $ for August 2013 "

My code i dont know how to do step 3:

value = float(input("Enter the value of the company's sales in dollars in August 2013: "))

推荐答案

2013年8月



我的代码我不知道如何做第3步:



for August 2013 "

My code i dont know how to do step 3:

value = float(input("Enter the value of the company's sales in dollars in August 2013: "))


尊敬的会员,

你可以做计算如下: -

Dear Member,
You can do the calculation as follows:-
value = float(input("Enter the value of the company's sales in dollars in August 2013: "))
st = value * 6 /100
print ("The sales tax is


,st, 2013年8月





// Sunil



// Sunil


这篇关于Python的计算命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆