Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sum=0
- print ("Choose: \n 1-VS PC \n 2-VS Human")
- p=int(input())
- while True and p==2:
- print ("sum=" , sum)
- p1=int(input("Player 1 \n"))
- while (p1>10 or p1==0):
- print("Choose number Between 1-10")
- p1=int(input("Player 1 \n"))
- while (p1+sum>100):
- c=100-sum
- print("Choose number between (1-" , c ,")")
- p1=int(input("Player 1 \n"))
- sum=sum+p1
- if sum==100:
- print("player 1 is ther winner!!!!")
- break
- print ("sum=" , sum)
- p1=int(input("Player 2 \n"))
- while (p1>10):
- print("Choose number Between 1-10")
- p1=int(input("Player 2 \n"))
- while (p1+sum>100):
- c=100-sum
- print("Choose number between (1-" , c ,")")
- p1=int(input("Player 2 \n"))
- sum=sum+p1
- if sum==100:
- print("player 2 is ther winner!!!!")
- break
- while True and p==1:
- print ("sum=" , sum)
- p1=int(input("Player 1 "))
- while (p1>10 or p1==0):
- print("Choose number Between 1-10")
- p1=int(input("Player 1"))
- while (p1+sum>100):
- c=100-sum
- print("Choose number between (1-" , c ,")")
- p1=int(input("Player 1 "))
- sum=sum+p1
- if sum==100:
- print("player 1 is ther winner!!!!")
- break
Add Comment
Please, Sign In to add comment