(Week 5 Updated) Slides and Videos On Onedrive
(Week 5 Updated) Slides and Videos On Onedrive
Click or copy the links to your web browser to download the files via Onedrive.
My suggestion: Download the files to your computer rather than watch them online in the web
browser!
1 Theory
No Theory materials at this week
2 Practice
2.1 Document: “Practice1 install and run python.docx”
https://jxufeeducn-my.sharepoint.com/:w:/g/personal/maomingsong_jxufe_edu_cn/EQHGX7miL
JdKo2O_Ta0N51ABmLBsHRkb0L3-hY63Zurm7A?e=zVHUHi
3 Assignment
Finish the “Assignment 1 - YOURNAME.docx” and sent it to me via wechat or email.
https://jxufeeducn-my.sharepoint.com/:w:/g/personal/maomingsong_jxufe_edu_cn/EQ6tyGHHG
ltLuT1uGlmCTr8BZdkd-jM9UmQYdDpcci7tcQ?e=fhwkt7
4 Important Notes
No
Week 2 Code with IDE (PyCharm)
Click or copy the links to your web browser to download the files via Onedrive.
My suggestion: Download the files to your computer rather than watch them online in the web
browser!
1 Theory
1.1 Slides: “week2 code with IDE.ppt”
https://jxufeeducn-my.sharepoint.com/:p:/g/personal/maomingsong_jxufe_edu_cn/EVR1qdODlc
NAi05EQ4jq45YBtD28XCOMPjlRqfFL-3iJ3g?e=0y7yC8
2 Practice
2.1 Document: “week2 - practice python syntax.docx”
https://jxufeeducn-my.sharepoint.com/:w:/g/personal/maomingsong_jxufe_edu_cn/EUur52dDH
2RDrKPjEjNeTmoBGn6UM7oTzSvQARuopxIGcQ?e=XcBiBz
3 Assignment
Finish the “Assignment 2 - YOURNAME.docx” and sent it to me via wechat or email.
https://jxufeeducn-my.sharepoint.com/:w:/g/personal/maomingsong_jxufe_edu_cn/ETyQWx5on
itDnegZQJPrCQIBB2Sfd0wJWL9xjZbXihZrKg?e=tomh8A
4 Important Notes
print()
input()
eval()
x, y = 1, 2
x, y = y, x
Week 3 Math and String
Click or copy the links to your web browser to download the files via Onedrive.
My suggestion: Download the files to your computer rather than watch them online in the web
browser!
1 Theory
1.1 Slides: “week3 math and string.ppt”
https://jxufeeducn-my.sharepoint.com/:p:/g/personal/maomingsong_jxufe_edu_cn/EdKFKx0IxD
5Bkv8nvyiEM7gBOposqb2RF9zgRuXopRYvKg?e=rybo1d
2 Practice
2.1 Document: “week3 practice Math String Objects.docx”
https://jxufeeducn-my.sharepoint.com/:w:/g/personal/maomingsong_jxufe_edu_cn/EVopg1cJZp
BPnSxIBmqGhZoBZ26j5oKZSq2TgsQX3oCl3Q?e=0omVLP
2.2 Video:
https://jxufeeducn-my.sharepoint.com/:v:/g/personal/maomingsong_jxufe_edu_cn/ETExVujnsz5
KjKwLz6Xj7YUBRtmkrejKa9bm-KVXbdtdiQ?e=FBUJ37
3 Assignment
Finish the “Assignment 3 - YOURNAME.docx” and sent it to me via wechat or email.
https://jxufeeducn-my.sharepoint.com/:w:/g/personal/maomingsong_jxufe_edu_cn/EXfcHrWDjl
9NhYNDJEm7wNoBPz02E8flaJ19ceZLkuwV6Q?e=Sz4QGh
4 Important Notes
max(), min(), round(), abs(), pow()
ord(), str()
print(str, end='\n')
str(5.3)
type()
str objects methods: s.lower(), s.upper(), s.strip(), s.split()
format()
a = 3.1415926535897932384626433
b = 34.23
print(format(a, '<10.5f'))
print(format(b, '<10.5f'))
s1 = 'abc'
s2 = 'Fode'
s3 = 'Mingsong'
print(format(s1, '>10s'))
print(format(s2, '>10s'))
print(format(s3, '10s'))
Week 4 Selection and loops
Click or copy the links to your web browser to download the files via Onedrive.
My suggestion: Download the files to your computer rather than watch them online in the web
browser!
1 Theory
1.1 slides: "week 4 slide 1 selection.ppt"
https://jxufeeducn-my.sharepoint.com/:p:/g/personal/maomingsong_jxufe_edu_cn/ERNC48Qjb
1pJhynwrnVeo7wBGCnXe_JQyF_ZSFFJZ7kVgQ?e=fpXcl5
2 Practice
No practice this week
3 Assignment
No assignment this week
4 Important Notes
if
else
elif
and, or, not
y = 1 if x > 0 else -1
while
for i in range(start, end, step):
for i in range(10):
for i in range(1, 10):
for i in range(1, 10, 2):
break
continue
Week 5 Functions
Click or copy the links to your web browser to download the files via Onedrive.
My suggestion: Download the files to your computer rather than watch them online in the web
browser!
1 Theory
1.1 Slides: "week 5 slides functions.ppt"
https://jxufeeducn-my.sharepoint.com/:p:/g/personal/maomingsong_jxufe_edu_cn/ESrCi_6E7pB
HmMvNpoxg-AUBIS-8ooWtIlUPdrSqnpZ88g?e=NcynKs
2 practice
2.1 - slides: "week 5 practice case study.ppt"
https://jxufeeducn-my.sharepoint.com/:p:/g/personal/maomingsong_jxufe_edu_cn/Ecd3IoDfnM
dIhrYow0j0b14B5j9OKj8DqS_Jds9ZDty-0g?e=h0U86d
3 Assignment
As that I have not yet finished the case study in the practice slides "week 5 practice case
study.ppt" , try to code as many as you can to solve it. You can submit the results at next week.
4 Important notes
define a function
pass-value
python module
import
scope of variables: global and local variables
arguments position
default arguments