Answers for "head() tail() pythin"

2

head or tail python

import random
name = str(input("Who will take head your name:- "))
name2 = str(input("Who will take tail your name:- "))
head_or_tail = random.randint(0,1)
if head_or_tail == 1:
    print(name,"you won it's Head and",name2,"lost")
elif head_or_tail == 0:
    print(name2,"You won it's tail and",name,"you lost")
Posted by: Guest on June-26-2021

Python Answers by Framework

Browse Popular Code Answers by Language