Skip to content

Instantly share code, notes, and snippets.

View RandomResourceWeb's full-sized avatar

RandomResourceWeb

View GitHub Profile
@RandomResourceWeb
RandomResourceWeb / Rock Paper Scissors in Python
Created July 17, 2016 09:20
Rock Paper Scissors in Python
#---------------------------------
# Random Resource Web ©
# Randomresourceweb.blogspot.com
#---------------------------------
from tkinter import *
import random
root = Tk()
root.title("rock paper scissors")
@RandomResourceWeb
RandomResourceWeb / ButtonToBrowser
Created July 17, 2016 08:57
How to open a link through a tkinter button in Python
#---------------------------------
# Random Resource Web ©
# Randomresourceweb.blogspot.com
#---------------------------------
from tkinter import *
import webbrowser
root = Tk()
@RandomResourceWeb
RandomResourceWeb / GuessTheNumberPython
Created July 17, 2016 08:49
Guess the number in Python
#-----------------------------------
# Random Resource Web ©
# Randomresourceweb.blogspot.com
#-----------------------------------
import random
def randnumber():
global number
number = random.randrange(1,101)