Python 入门教程 2 ---- Tip Calculator
来源:互联网 发布:淘宝客 冻结资金 编辑:程序博客网 时间:2024/05/05 08:08
第一节
1 把变量meal的值设置为44.50
#Assign the variable meal the value 44.50 on line 3! meal = 44.50
第二节
1 把变量tax的值设置为6.75%
meal = 44.50 tax = 6.75/100
第三节
1 设置tip的值为15%
#You're almost there! Assign the tip variable on line 5. meal = 44.50 tax = 0.0675 tip = 0.15
第四节
1 把变量meal的值设置为meal+meal*tax
#Reassign meal on line 7! meal = 44.50 tax = 0.0675 tip = 0.15 meal = meal+meal*tax
第五节
1 设置变量total的值为meal+meal*tax
#Assign the variable total on line 8! meal = 44.50 tax = 0.0675 tip = 0.15 meal = meal + meal * tax total = meal + meal * tip print("%.2f" % total)
- Python 入门教程 2 ---- Tip Calculator
- Program[00]-Tip Calculator
- Python Calculator
- Android学习笔记三 Tip Calculator
- iOS Swift(1) 小费计算器(Tip Calculator)
- Python学习 Tip摘录
- python学习tip记录
- python Tip 算法题目
- 从零开始的Python入门教程2
- Python快速入门教程2:Python 面向对象
- Python入门教程
- Python入门教程
- PYTHON 入门教程
- Python入门教程
- Python入门教程
- Python入门教程
- python 入门教程
- Python入门教程
- 一个fork的面试题
- 机房收费系统总结之5——抽象工厂+反射+配置文件
- 随笔记下点滴-->>>总有一天汇成湖泊--->>聚成太平洋
- effective c++读书笔记
- Windows Server 2012正式版RDS系列⑽
- Python 入门教程 2 ---- Tip Calculator
- 数据库视频总结,尘埃落定
- 常见宽带错误解决方法
- centos 部署 Nginx + uwsgi + django +mysql 多站点
- Redis主从和HA配置
- 规划路线
- LeetCode | Reverse Nodes in k-Group
- HTML5画布的形状与kineticjs缓存
- Qt绘 —— QPixmap 的使用