FreeCodeCamp
文章平均质量分 90
play maker
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
FreeCodeCamp----Scientific Computing with Python Projects - probability-calculator
AssignmentSuppose there is a hat containing 5 blue balls, 4 red balls, and 2 green balls. What is the probability that a random draw of 4 balls will contain at least 1 red ball and 2 green balls? While it would be possible to calculate the probability usi原创 2021-01-23 09:46:26 · 531 阅读 · 0 评论 -
FreeCodeCamp----Scientific Computing with Python Projects - Polygon Area Calculator
AssignmentIn this project you will use object oriented programming to create a Rectangle class and a Square class. The Square class should be a subclass of Rectangle and inherit methods and attributes.Rectangle classWhen a Rectangle object is created, i原创 2021-01-23 08:31:01 · 594 阅读 · 3 评论 -
FreeCodeCamp----Scientific Computing with Python Projects----Budget-app
AssignmentComplete the Category class in budget.py. It should be able to instantiate objects based on different budget categories like food, clothing, and entertainment. When objects are created, they are passed in the name of the category. The class shou原创 2021-01-17 18:33:23 · 1183 阅读 · 0 评论 -
FreeCodeCamp----Scientific Computing with Python Projects----time-calculator
AssignmentWrite a function named add_time that takes in two required parameters and one optional parameter:a start time in the 12-hour clock format (ending in AM or PM)a duration time that indicates the number of hours and minutes(optional) a starting原创 2021-01-17 11:54:32 · 789 阅读 · 0 评论 -
FreeCodeCamp----Scientific Computing with Python Projects----Arithmetic Formatter
AssignmentStudents in primary school often arrange arithmetic problems vertically to make them easier to solve. For example, “235 + 52” becomes: 235+ 52-----Create a function that receives a list of strings that are arithmetic problems and returns原创 2021-01-17 10:50:48 · 1064 阅读 · 1 评论
分享