System Specs: Arch Linux 4.14.11 (Xorg); Intel i7-7700k; NVIDIA GTX-1080 Ti
- 28 tests run
- 2 had significant results: python startup time (+2%) new time is ~9.0ms
| (function () { | |
| // modified from https://github.com/RunestoneInteractive/RunestoneServer/issues/1163#issuecomment-441084254 | |
| // divide grading task into two jobs | |
| // and run them in separate browser tabs | |
| // queue1 and queue2 represent the ending points for each list | |
| // see line 23 | |
| function splitQueue(studentlength) { | |
| var queue1 = 0 | |
| var queue2 = studentlength | |
| if (studentlength % 2 == 0) { |
| # Background: | |
| # X to the power of Y | |
| # | |
| # Function that takes x, y as an inputs | |
| # and returns x ** y | |
| # | |
| # Example call: x_to_y(2, 3) | |
| # Returns: 8 | |
| # Instructions: |
| # Starter code for turtle Halloween project | |
| # Name: Bob Student | |
| # Period: 3 | |
| import turtle | |
| t = turtle | |
| # Set background color, turtle color, and width | |
| t.bgcolor('black') |
| # We have discussed variable assignment a lot in class | |
| # Think about the recipe: variable = value | |
| # Now, we will practice with variable **reassignment** | |
| # Let's imagine that we're counting the pieces of Halloween candy collected on Oct. 31 | |
| candy_collected = 0 | |
| print("Candy collected so far:", candy_collected) | |
| # After the first house, we get 2 pieces | |
| candy_collected = candy_collected + 2 | |
| print("Candy collected so far:", candy_collected) |
| # practice with module imports and evaluation of foreign modules | |
| # in our code | |
| import time | |
| import datetime | |
| # datetime.date syntax: | |
| # (( 1 )) date(year, month, day) --> date object | |
| dateTime = datetime.date(2018,10,12) |
System Specs: Arch Linux 4.14.11 (Xorg); Intel i7-7700k; NVIDIA GTX-1080 Ti