Skip to content

Instantly share code, notes, and snippets.

#JSON for file management
import json
#Miscellaneous operating system interfaces
import os
import matplotlib.pyplot as plt
import random
def Intersection(lst1,lst2):
if (lst1 == None or lst2 == None):
lst3 = []
from __future__ import division, print_function
from visual import *
from visual.graph import *
import wx
import math
#Variables and Constants.
GravitationalConstant = 6.625e-11
MassOfSun = 1.9891e30
RadiusOfSun = 696340000
@PeechesInc
PeechesInc / handcricket.py
Last active January 31, 2020 14:11
Code for simulating hand cricket matches.
import random
while True:
#Main program
#Main Variables
overs = int(input("Enter no of overs : "))
no_of_matches = int(input("Enter no of matches you want to simulate : "))
current_match = 0
team_two = 0