A simple program supposed to calculate 3 digit psuadorandomness from a seed
#Psuedorandomenss
#Note seed needs to be 3 digits
def calculate(seed, times):
for time in range(times):
seed * seed
seed = str(seed)[1:3]
return seed
import codewars_test as test
# TODO Write tests
import solution # or from solution import example
# test.assert_equals(actual, expected, [optional] message)
@test.describe("Example")
def test_group():
@test.it("test case")
def test_case():
test.assert_equals(calculate(131, 1), 716)