Questions and Answers
Problems and Solutions
Quotes help make search much faster. Example: "Practice Makes Perfect"
Sunday, November 25, 2012
Codecademy: "Function Imports"
#sample solution
#Import *just* the sqrt function from math on line 3!
from math import sqrt
print sqrt(4)
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
This is an example of
scrolling text
using Javascript.
Popular Posts
(no title)
Question: The total power dissipation in an RL series circuit is due to which component? Answer: The total power dissipation is due to ...
What is the area of a trapezoid?
Type in the length of the shorter base of the trapezoid: meters Type in the length of the longer base of the trapezoid: meters ...
What is the area of a regular dodecagon (12-sided polygon)?
Type in the length of the side of a dodecagon: meters Compute
What is the area of an N-sided regular polygon?
A regular polygon has sides of equal length. Type in the length of the side of a sided regular polygon: meters Compute
What is the area of a regular myriagon (10000-sided polygon)?
Type in the length of the side of a myriagon: meters Compute
Find the solution to a system of linear equations with n unknowns
This script will try to solve for x in a system of linear equations of the form Ax=y . x is the unknown column vector and y is th...
Codefights additionWithoutCarrying(param1, param2)
//sample solution function additionWithoutCarrying(param1, param2) { var param1Array = param1.toString().split("").reverse()...
Codecademy: Arbitrary number of arguments
#sample solution m = 5 n = 13 #function goes here def myFun(*x): sum = 0 for index in range(0,len(x)): sum = sum + x[index] r...
Array Element Tally
Say you had an election, and you needed to tally the votes for each candidate. All you need to do is enter the name of each candidate o...
Codecademy Quantiles Common Quantiles 4/5
#Sample Solution --- title: "Quantiles" output: html_notebook --- ```{r} # load song data load("songs.Rda") ```...
No comments:
Post a Comment