touch up yo
This commit is contained in:
parent
c674ce998d
commit
45d3de2efe
@ -1,5 +1,5 @@
|
||||
def fizzbizz(num):
|
||||
|
||||
pass
|
||||
|
||||
|
||||
def assertion(actual, expected):
|
||||
|
@ -1 +1,2 @@
|
||||
def multiplication_table(number):
|
||||
pass
|
||||
|
@ -1 +1,2 @@
|
||||
def triangle(num):
|
||||
pass
|
||||
|
2
python/6-triangles-part-2/triangle.py
Normal file
2
python/6-triangles-part-2/triangle.py
Normal file
@ -0,0 +1,2 @@
|
||||
def mario_triangle(num):
|
||||
pass
|
@ -1,24 +0,0 @@
|
||||
To Do List
|
||||
==========
|
||||
|
||||
When it comes to learning new web languages, the todo list has become a "Hello World". So expect to revisit this in Python.
|
||||
|
||||
But until then, we will do it in front-end Javascript.
|
||||
|
||||
You will find the toDoList prototype and constructor at the top of the main.js file.
|
||||
|
||||
###Create the List
|
||||
|
||||
The add method adds a todo to the list, using the text input and form.
|
||||
|
||||
The complete method marks the appropriate todo item complete. The user wants to click the item itself and strike the item, noting it done.
|
||||
|
||||
Use toggle to toggle it done struck and unstruck.
|
||||
|
||||
Feel free to add any other methods, lists or objects you may want. You will want a separate function to print the list to the #printout div.
|
||||
|
||||
###Woah! Client's demands have changed
|
||||
|
||||
Now the client who was going to buy your sweet todo list wants a new feature. Is it going to break your whole code, or is your code modular and extendable?
|
||||
|
||||
They want it so after a user completes a task, it is displayed struck for 10 seconds, but then disappears from your list. Google the setTimeout method.
|
@ -1,10 +0,0 @@
|
||||
I'm Fizz Buzzing Bro
|
||||
====================
|
||||
|
||||
Write a function that takes a positive number, and returns you the sum of all multiples of 3 and 5, but not numbers that are multiples of 15.
|
||||
|
||||
In Python, here is how we define a function:
|
||||
|
||||
def multiples(num):
|
||||
algorithm ##indentation is mandatory
|
||||
return(sum) ##this is it, no closure!
|
@ -1 +0,0 @@
|
||||
def multiples(number):
|
@ -1,17 +1,14 @@
|
||||
Temperature Converters
|
||||
======================
|
||||
|
||||
###Fahrenheit to Celsius
|
||||
Write a function that converts fahrenheit temperatures to celsius. The equation to do this is:
|
||||
#### Fahrenheit to Celsius
|
||||
Write a function that converts fahrenheit temperatures to celsius. The equation to do this is ```C = (F - 32) * 5/9```.
|
||||
|
||||
C = (F - 32) * 5/9
|
||||
#### Celsius to Fahrenheit
|
||||
|
||||
###Celsius to Fahrenheit
|
||||
Write a similar function that converts celsius to fahrenheit.
|
||||
The equation for this is ```F = (C * 9/5) + 32```.
|
||||
|
||||
Write a similar function that converts celsius to fahrenheit. The equation:
|
||||
#### Testing
|
||||
|
||||
F = (C * 9/5) + 32
|
||||
|
||||
###Testing
|
||||
|
||||
Make sure the tests pass. Write 3 of your own tests.
|
||||
Make sure the tests pass. Write 3 of your own tests.
|
||||
|
Loading…
x
Reference in New Issue
Block a user