import time
def countdown(time_sec):
while time_sec:
mins, secs = divmod(time_sec, 60)
timeformat = '{:02d}:{:02d}'.format(mins, secs)
print(timeformat, end='\r')
time.sleep(1)
time_sec -= 1
print("stop")
countdown(5)
base = 3
exponent = 4
result = 1
while exponent != 0:
result *= base
exponent-=1
print("Answer = " + str(result))
a = "0"
while True:
a += a
import random
print("Welcome To Rock, Paper, Scissors")
actions=["Rock","Paper","Scissors"]
player1=input("Name of Player 1: ")
player2=input("Name of Player 2: ")
a=random.choice(actions)
b=random.choice(actions)
print(player1,":" ,a)
print(player2,":",b)
if a == "Rock" and b == "Scissors":
print(player1,"Wins!")
elif a == "Paper" and b == "Rock":
print(player1,"Wins!")
elif a == "Scissors" and b == "Paper":
print(player1,"Wins!")
elif a == "Scissors" and b == "Rock":
print(player2,"Wins!")
elif a == "Paper" and b == "Scissors":
print(player2,"Wins!")
elif a == "Rock" and b == "Paper":
print(player2,"Wins!")
elif a == "Rock" and b == "Rock":
print("Tie!")
elif a == "Scissor" and b == "Scissor":
print("Tie!")
elif a == "Paper" and b == "Paper":
print("Tie!")