Created
January 15, 2015 04:49
-
-
Save fomightez/4a42ec7f9ed8c8c00e93 to your computer and use it in GitHub Desktop.
example of how Python is a very high level language from https://darynholmes.wordpress.com/2008/04/07/very-high-level-language-%E2%80%93-so-what/
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
import random | |
numbers = range (1,50) | |
chosen = [] | |
while len(chosen) < 6: | |
number = random.choice(numbers) | |
numbers.remove(number) | |
chosen.append(number) | |
chosen.sort() | |
print "This week's numbers are", chosen | |
print "The bonus ball is", random.choice(numbers) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment