Skip to content

Instantly share code, notes, and snippets.

@fomightez
Created January 15, 2015 04:49
Show Gist options
  • Save fomightez/4a42ec7f9ed8c8c00e93 to your computer and use it in GitHub Desktop.
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/
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