UrbanPro
true

Take B Ed Tuition from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Search in

Rock, Paper Scissor Game With Computer

D
Deleted User
18/07/2020 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 0

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...

Looking for B Ed Tuition ?

Learn from Best Tutors on UrbanPro.

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you

B Ed Tuition Questions

X

Looking for B Ed Tuition Classes?

The best tutors for B Ed Tuition Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Take B Ed Tuition with the Best Tutors

The best Tutors for B Ed Tuition Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 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 7.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