Questions and Answers
Problems and Solutions
Quotes help make search much faster. Example: "Practice Makes Perfect"
Saturday, November 24, 2012
Codecademy: "Compare Closely!"
#sample solution
#Assign `True` or `False` as appropriate on the lines below!
# 17 < 118 % 100
bool_one = True
# 100 == 33 * 3 + 1
bool_two = True
# 19 <= 2**4
bool_three = False
# -22 >= -18
bool_four = False
# 99 != 98 + 1
bool_five = False
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
Codecademy: "Function and Control Flow"
//sample solution def isEven(x): if(x % 2 == 0): return "yep" else: return "nope"
Codecademy: The sum of scores
#sample solution grades = [100, 100, 90, 40, 80, 100, 85, 70, 90, 65, 90, 85, 50.5] def grade_sum(grades): sum = 0 for grade in gra...
What hotkeys can you use in a Python shell to repeat the previous command you typed?
Answer: Alt - p p stands for previous. If you keep pressing Alt - p, you will continue cycling back through commands you typed before. I...
Codecademy Sample Solution: Conditional Assignment
favorite_animal ||= "dog" favorite_animal ||= "cat"
Codecademy Sample Solution: Adding the Parse SDK to your app
<html> <head> <!-- Add the Parse SDK here! --> <script src="http://www.parsecdn.com/js/par...
Codeschool Sample Solution Selecting Direct Children
$("#tours > li")
Codecademy: "Unless"
#sample solution hungry = false unless hungry puts "I'm writing Ruby programs!" else puts "Time to eat!...
Codecademy: Codeyear Nesting conditional statements
//sample solution var yourName = "Pam"; var gender = "female"; var result; //Line 10 starts an if statement //Ne...
Make a Website: HTML Wrap with a div
<!-- Sample solution to index.html --> <!DOCTYPE html> <html> <body> <div class="nav"> ...
Codecademy > Learn Java > HashMap: Manipulation Sample Solution
import java.util.HashMap; public class Restaurant { public static void main(String[] args) { HashMap<String, Integer> restauran...
No comments:
Post a Comment