American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

5 PM – Indo – Intro To Python – Joel

February 20, 2023 @ 8:00 am - 5:00 pm

What we did:
  1. We learned about random.
  2. We went over Magic 8-ball version 1
  3. We went over the password generator.
Homework:
  1. Create a magic 8-ball using random.randint. It will have 6 answers:
    1. Yes
    2. No
    3. Maybe
    4. Absolutely
    5. No way
    6. I am not sure
  2. Create a new file Feb18_Magic8BallV2.py. Create another version of Magic8Ball program, this time use random.choice. It will also have the same answers in the first homework.
  3. Optional homework. But if you do it correctly, your 1st quiz grade will be increased by 10%. Improve Feb18_PasswordCreator.py
    1. 7% – Right now the code produce <action><animal><num>. The improvement will do the following, it can randomize the order:
      1. <animal><action><num>
      2. <num><action><animal>
      3. <action><num><animal>
    2. 3% – Randomize the upper() and title()
      1. <animal.title()><action.upper()><num>
      2. <animal.upper()><action.title()><num>

Details

Date:
February 20, 2023
Time:
8:00 am - 5:00 pm
Verified by MonsterInsights