This file contains hidden or 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
#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 = [] |
This file contains hidden or 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
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 |
This file contains hidden or 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 | |
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 |