本答案对应课程为:点我自动跳转查看
本课程起止时间为:2021-03-08到2021-07-18
本篇答案更新状态:已完结

【作业】Lecture 1 — Introduction Week 1 Assignment

1、 问题:Run your first code
评分规则: 【 make a ‘hello.py’ file with the following statement:print(‘hello world’ )print(‘this is YOURNAME, YOUR STUDENT ID’)Run the code in any IDE you likeTake a screenshot and submit it to the system

【作业】Lecture 2 — Python Environment and Our First Program Week 2 Programming Assignment

1、 问题:Ask the user to input their height(in meter) and weight (in kg), then print their BMI result.BMI = weight(kg)/ Height(meter)2
评分规则: 【 No submissioin: 0 pointsRunning with errors: 50Code running without errors but with wrong results, 70-90Code running without errors and has correct results, 100

【作业】Lecture 3 — More Concepts & Condition Control Guess Number 2.0

1、 问题:Let the program generate a random number between 0-10. You may need to use Random library. Read its docstring.possible method: random.randint()
评分规则: 【 Submit codes related to the question and Code runs with no error
Code runs without error and get correct results

【作业】Lecture 4 — String Assignment

1、 问题:Check out the attached file and solve the problems in Python. Please noted that the two attached files are identical but in different format. Choose any one. Remember to upload .py file only
评分规则: 【 finish all questions

【作业】Lecture 5 — Iteration Week 5 Homework

1、 问题:Check out the attached file and solve the problems in Python. Please noted that the two attached files are identical but in different format. Choose any one. Remember to upload .py file only.Write code to solve the problem. Please make sure the program could run without any error!DDL: Next Weds 20:00
评分规则: 【 No error and returns correct results

【作业】Lecture 6 — List Assignment

1、 问题:1. How many characters in “pystr”? – With spaces – Without spaces2. How many words?Difficulty: – How should we define word?Hint: – .join()—string’s method
评分规则: 【 Running without error and give a right result

【作业】Week 9 Function Week 9 Assignment

1、 问题:# Programming in Python## Week 9 AssignmentRequirements1. Please zip your “.py” file, name it with your student id and submit to the SPOC as an attachment2. Make sure your code will run without any error。(Code with errors with get marks under 60)3. Print “Question #” in front of each question4. Some questions may invlove knowledges that are not taught in the class, try to learn by yourself! (hints and tips will be given)5. Try to make your code as generalized as you can, which means it may not only solve the given problem examples, but can be applied to other cases.Write a function named ‘guessing_number’ to accomplish the number guessing game.Requriements:1. The function should have the following parameters: – rg: the guessing number range – mode: which gaming mode people want to play. mode 1: game will only run three times except the user guesses the right number mode 2: game will end until user guesses the right number2. After each guessing, the game should let the user know whether their guessing is # # larger or smallerTips:a, you can decide whether or not to return any valueb, it is up to you to assume the type of any parameterc, try to write docstring to the function so that peope would know how to run it.
评分规则: 【 Code should run without errors and with correct results

【作业】Week 10 Function, Debug, and Exercises Assignment

1、 问题:Write a function to return the next day’s date of the given date. For instance, if 2019-01-31 was given, then the function should return 2019-02-01The function should have three parameters: Year, month, dateDifficulty: leap year!
评分规则: 【 You cannot use any packages or modules.Code should be able to run without erros and return correct result

【作业】Week 11 Recursion, Set, Dict, and Tuple Week 11 Assignment

1、 问题:Find assignment in the attached file pls
评分规则: 【 No error, return correct results

Week 14 Try..exception..lambda..exercise One short mock test

1、 问题:Which of the following cannot be a variable?
选项:
A:init
B:in
C:it
D:on
答案: 【in

2、 问题:Which of the following is an invalid statement?
选项:
A:abc = 1,000,000
B: a b c = 1000 2000 3000
C:a,b,c = 1000, 2000, 3000
D:a_b_c = 1,000,000
答案: 【 a b c = 1000 2000 3000

3、 问题:s='{0}, {1}, and {2}’
s.format(‘hello’, ‘good’, ‘morning’)
选项:
A:good, hello, morning’
B:‘hello, good, morning’
C:‘hello, good, and morning’
D:Error
答案: 【‘hello, good, and morning’

4、 问题:i = 0
while i < 3:
print(i)
i += 1
else:
print(0)
选项:
A:1 2 0
B:0 1 2 0
C:0 1 2
D:Error
答案: 【0 1 2 0

5、 问题:for i in [1, 2, 3, 4][::-1]:
print (i)
选项:
A:1 2 3 4
B:4 3 2 1
C:error
D:none of the mentioned
答案: 【4 3 2 1

6、 问题:What is the data type of (1)?
选项:

本门课程剩余章节答案为付费内容
本文章不含期末不含主观题!!
本文章不含期末不含主观题!!
支付后可长期查看
有疑问请添加客服QQ 2356025045反馈
如遇卡顿看不了请换个浏览器即可打开
请看清楚了再购买哦,电子资源购买后不支持退款哦

   

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注