dudu

Forum Replies Created

Viewing 4 reply threads
  • Author
    Posts
    • #19946
      dudu
      Participant

      are we suppodes to remember the title as well?

       

    • #19380
      dudu
      Participant

      dis is my ONE-LIne (that i tested) code:

      (indent)

      import random
      def d():
      print(“Welcome to dudu’s rOcK, pApEr, ScIsSoRs bot!”)
      while True:
      choice=input(“Choose ‘rOcK’, ‘pApEr’, or ‘ScIsSoRs’: “)
      computer_choice=random.randint(0,2)
      # 0, rock, 1, paper, 2, scissors
      if choice==”rOcK”:
      if computer_choice==0:
      print(“Tie!”)
      elif computer_choice==1:
      print(“Defeat!”)
      if computer_choice==2:
      print(“Victory!”)
      if choice==”pApEr”:
      if computer_choice==0:
      print(“Victory!”)
      elif computer_choice==1:
      print(“Tie!”)
      if computer_choice==2:
      print(“Defeat!”)
      if choice==”ScIsSoRs”:
      if computer_choice==0:
      print(“Defeat!”)
      elif computer_choice==1:
      print(“Victory!”)
      if computer_choice==2:
      print(“Tie!”)

      while True:
      d()

      <audio style=”display: none;” controls=”controls”></audio>

    • #18108
      dudu
      Participant

      my project codes (the second and last are quite lazy, i couldn’t thnk of anything) 😁

      <audio style=”display: none;” controls=”controls”></audio>

      Attachments:
      You must be logged in to view attached files.
    • #16763
      dudu
      Participant

      This is my Mock Test #2 😛

      Attachments:
      You must be logged in to view attached files.
    • #15691
      dudu
      Participant

      My Mock Test 😛 dudu

      Attachments:
      You must be logged in to view attached files.
Viewing 4 reply threads
Skip to toolbar