Questions and Answers
Problems and Solutions
Quotes help make search much faster. Example: "Practice Makes Perfect"
Sunday, November 25, 2012
Codecademy: "Call and Response"
#sample solution
def square(n):
squared = n**2
print "%d squared is %d." % (n, squared)
return squared
#Call the square function on line 9! Make sure to
#include the number 10 between the parentheses.
square(10)
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
Codeyear: Deal It Out
//sample solution // Card Constructor function Card(num1,num2) { //properties var suit = num1; var number = num2; //methods ...
Codeschool Cliffs of Value Modulus Sample Solution
Find an expression using two values and the modulus operator that results as 4 Answer: 32%7
(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 ...
Codecademy Sample Solution: Codeyear Eliminating Unnecessary HTML
<style> p { margin: 0px; padding-left: 10%; padding-right: 10%; text-align: justify; border-style: dashed;...
Ideal current source resistance
Question: How much internal resistance does an ideal current source have? Answer: An ideal current source has infinite resistance.
Codecademy: Comprehending Comprehensions
#sample solution threes_and_fives = [x for x in range(16)[1::] if (x%3==0) or (x%5==0)] print threes_and_fives
Maximum Power Transfer in DC Circuits
Question: When is the maximum power delivered from a practical source to a load? Answer: Maximum power is delivered to the load when it...
Codecademy: The 'in' operator
#sample solution my_dict = { "Name": "Guido", "Age": 56, "BDFL": True } for key...
Codecademy Sample Solution: Authentication and API Keys
// What's an API key? // A: An alphanumeric string used to identify you to an API // B: An OAuth token // C: An All-Purpose Interne...
Codecademy - Sun, Earth, and Code: Spin please
// Sample solution to style.css html, body { /* The universe takes up all available space */ width: 100%; height: 100%; ...
No comments:
Post a Comment