Information Technology > Research Paper > University of California, Los AngelesLS 30ALab5-turnin (All)
Lab5-turnin https://cocalc.com/f859642a-edeb-4b67-9b04-a0c39b74353b/raw/Lab 5/Lab5-turnin.html 1/9 In [1]: # Please do all of your work for this week's lab in this worksheet. If # you wish to creat... e other worksheets for scratch work, you can, but # this is the one that will be graded. You do not need to do anything # to turn in your lab. It will be collected by your TA at the beginning # of (or right before) next week’s lab. # Be sure to clearly label which question you are answering as you go and to # use enough comments that you and the grader can understand your code. In [2]: #Exercise 1 g(x)=19*x^3 print g(0); print g(10); print g(-4) In [3]: #Exercise 2 j(x)=4*x^2 #SageMath math function print j(1); print j(2); print j(3) In [7]: #Exercise 3 def own(num): #Python function result=4*num^2 return result print own(1); print own(2); print own(3) In [14]: #Exercise 4 list4=srange(1,101) print list4 [Show More]
Last updated: 1 year ago
Preview 1 out of 9 pages
Connected school, study & course
About the document
Uploaded On
Jul 19, 2021
Number of pages
9
Written in
This document has been written for:
Uploaded
Jul 19, 2021
Downloads
0
Views
40
In Browsegrades, a student can earn by offering help to other student. Students can help other students with materials by upploading their notes and earn money.
We're available through e-mail, Twitter, Facebook, and live chat.
FAQ
Questions? Leave a message!
Copyright © Browsegrades · High quality services·