This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from random import randrange | |
class Guess: | |
def play(self): | |
print "The computer will select a secret number between 1 and 10." | |
print "Try to find the secret number using a minimum number of guesses." | |
play, secret, guess, guesses, answer = True, 0, 0, 0, None | |
while play: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function ParentScope(){ | |
this.aString = "parent string"; | |
this.aNumber = 100; | |
this.anArray = [10,20,30]; | |
this.anObject = {'property1': 'parent prop1', 'property2': 'parent prop2' }; | |
this.aFunction = function(){ console.log('parent output'); } | |
} | |
function ChildScope(){ | |
} |
NewerOlder