Skip to content

Instantly share code, notes, and snippets.

View tarunbod's full-sized avatar

Tarun Boddupalli tarunbod

View GitHub Profile
@tarunbod
tarunbod / rockPaperScissors.py
Last active February 2, 2018 00:55 — forked from bharddwaj/rockPaperScissors.py
rock paper scissors in python for practice.
import random
def computerChoice():
random.seed()
a = random.randint(1,3)
choices = ["rock", "scissors", "paper"]
return choices[a - 1] ''' if a is 1, it'll return choices[0] which is rock, etc. '''
'''
if(a == 1):
// Includes functions for exporting active sheet or all sheets as JSON object (also Python object syntax compatible).
// Tweak the makePrettyJSON_ function to customize what kind of JSON to export.
var FORMAT_ONELINE = 'One-line';
var FORMAT_MULTILINE = 'Multi-line';
var FORMAT_PRETTY = 'Pretty';
var LANGUAGE_JS = 'JavaScript';
var LANGUAGE_PYTHON = 'Python';