Peyman Daei Rezaei

Results 2 issues of Peyman Daei Rezaei

def get_winner(p1, p2): if p1 == p2: return "It's a tie!" elif p1 == 'rock': if p2 == 'scissors': return "First player wins!" else: return "Second Player wins!" elif p1...

`for i in range(n+1): a=1 a=a*(i+1) ` With the above method, factorial can be calculated. With this method, it is easier to understand the algorithm