0% found this document useful (0 votes)
74 views8 pages

(Week 5 Updated) Slides and Videos On Onedrive

The document provides instruction for a weekly coding course, including theory, practice, assignments, and important notes. For week 5, it includes: 1) Theory materials on functions through slides and videos. 2) A practice case study on functions presented through slides and a video. 3) An assignment to code solutions for the practice case study and submit results the following week. 4) Important notes on defining functions, passing values, modules, imports, and variable scopes.

Uploaded by

BRANDY GANYIRE
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
74 views8 pages

(Week 5 Updated) Slides and Videos On Onedrive

The document provides instruction for a weekly coding course, including theory, practice, assignments, and important notes. For week 5, it includes: 1) Theory materials on functions through slides and videos. 2) A practice case study on functions presented through slides and a video. 3) An assignment to code solutions for the practice case study and submit results the following week. 4) Important notes on defining functions, passing values, modules, imports, and variable scopes.

Uploaded by

BRANDY GANYIRE
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

Week 1 Course Instruction

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

2.2 Video: “Video 1 install and run python.mp4”


https://jxufeeducn-my.sharepoint.com/:v:/g/personal/maomingsong_jxufe_edu_cn/Ect_x_eGmT
ZArZ6pWESPY9MBrXxxV4mIueO6mrz4jFR-3w?e=HAYUF4

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

1.2 Video: “week2 - theory video.mp4”


https://jxufeeducn-my.sharepoint.com/:v:/g/personal/maomingsong_jxufe_edu_cn/ER5bd2pURS
5Mr6o70a55e2kBLPs_2OCEZowsPGZ7cVY86Q?e=RQsYBN

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

2.2 Video: “week2 - practice video.mp4”


https://jxufeeducn-my.sharepoint.com/:v:/g/personal/maomingsong_jxufe_edu_cn/ETExVujnsz5
KjKwLz6Xj7YUBRtmkrejKa9bm-KVXbdtdiQ?e=FBUJ37

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

1.2 Video: “week3 theory part 1.mp4”


https://jxufeeducn-my.sharepoint.com/:v:/g/personal/maomingsong_jxufe_edu_cn/EfYykQoB_fh
DiUP6_r4aGYcBSsL1NEnXqjJlfEdLDertEg?e=1xQ5IE

1.3 Video: “week3 theory part 2.mp4”


https://jxufeeducn-my.sharepoint.com/:v:/g/personal/maomingsong_jxufe_edu_cn/EWJAsCBkW
WNDuSzRjE-hdUABuAjHkfhit0JmUQOiJcPV2w?e=j85wjF

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

1.2 slides: "week 4 slide 2 loops.ppt"


https://jxufeeducn-my.sharepoint.com/:p:/g/personal/maomingsong_jxufe_edu_cn/ESrO1cV4VC
NHvAHsloh7X0kBwQNE1xpKocUVG-2T_x18cA?e=W0PgKe

1.3 video: "week 4 video part 1 - selections.mp4"


https://jxufeeducn-my.sharepoint.com/:v:/g/personal/maomingsong_jxufe_edu_cn/ETKYlaEbJeZ
MpAreG2t_m6MBhR26iiejz1kCHXDSqoVKlQ?e=ZLfTQJ

1.4 video: "week 4 video part 1 - selections.mp4"


https://jxufeeducn-my.sharepoint.com/:v:/g/personal/maomingsong_jxufe_edu_cn/ESCDnnuHBf
lKnP0bhqQYezcBtOyV4TDgZ_EcaqB26hrnOg?e=KRg09X

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):

 for element in list

 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

1.2 Video: "week 5 theory video part 1.mp4"


https://jxufeeducn-my.sharepoint.com/:v:/g/personal/maomingsong_jxufe_edu_cn/EarmpKMRR
-tEvknhzQpQyKwBXZ-WLSdo_EXONEG4RkPumw?e=8cE4C8

1.3 Video: "week 5 theory video part 2.mp4"


https://jxufeeducn-my.sharepoint.com/:v:/g/personal/maomingsong_jxufe_edu_cn/ETpP0JOvUT
JDt8SxIZHRof8B2_j373c77Ag8_GZi1Aa9eQ?e=hOWsOr

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

2.2 - video: "week 5 practice video.mp4"


https://jxufeeducn-my.sharepoint.com/:v:/g/personal/maomingsong_jxufe_edu_cn/EbfpeQd3Jp
pMmv6tPO4QS8IBdSHTFiI1cGYOoYF-ewHbmA?e=zrH59b

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

You might also like