true

Find the best tutors and institutes for B Ed Tuition

Find Best B Ed Tuition

Please select a Category.

Please select a Locality.

No matching category found.

No matching Locality found.

Outside India?

Search for topics

Rock, Paper Scissor Game With Computer

Himank Dhingra
18 Jul 0 0

import random
a='y'
while a=='y':
       ran=random.randint(0,2) 
       computer=1
       if ran==0:
             computer='rock'
       elif ran==1:
             computer='paper'
       elif ran==2:
             computer='scissors'
       player=input('Choose rock, paper or scissor: ')
        if player==computer:
               print('Its a Draw')
        elif player=='rock':
                if computer=='paper':
                       print('Computer hoose paper, Computer Wins!')
               else:
                       print('Computer Choose scissor, You Win!')
        elif player=='paper':
                if computer=='scissor':
                        print('Computer choose scissor, Computer Wins!') 
                else:
                       print('Computer Choose rock, You Win!')
        elif player=='scissors':
               if computer=='rock':
                       print('Computer choose rock, Computer Wins!')
               else:
                        print('Computer Choose paper, You Win!')
        a=input('Do you want to play more?Y/N : ')
        a=a.lower()

0 Dislike
Follow 1

Please Enter a comment

Submit

Other Lessons for You

Big Data Hadoop
- Big data is a complex term which is difficult to manage a traditional system like RDBMS, DB2, SQL etc. - Hadoop is an open-source software framework, for storing massive data and running applications...

Ankush Rathod | 13/07/2019

0 0
0

Looking for B Ed Tuition ?

Find best B Ed Tuition in your locality on UrbanPro.

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you
Sponsored
X

Looking for B Ed Tuition Classes?

Find best tutors for B Ed Tuition Classes by posting a requirement.

  • Post a learning requirement
  • Get customized responses
  • Compare and select the best

Looking for B Ed Tuition Classes?

Find best B Ed Tuition Classes in your locality on UrbanPro

Post your learning requirement

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 25 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 6.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more