« All Events
5 PM – Indo – Intro To Python – Joel
February 20, 2023 @ 8:00 am - 5:00 pm
What we did:
- We learned about random.
- We went over Magic 8-ball version 1
- We went over the password generator.
Homework:
- Create a magic 8-ball using random.randint. It will have 6 answers:
- Yes
- No
- Maybe
- Absolutely
- No way
- I am not sure
- 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.
- Optional homework. But if you do it correctly, your 1st quiz grade will be increased by 10%. Improve Feb18_PasswordCreator.py
- 7% – Right now the code produce <action><animal><num>. The improvement will do the following, it can randomize the order:
- <animal><action><num>
- <num><action><animal>
- <action><num><animal>
- 3% – Randomize the upper() and title()
- <animal.title()><action.upper()><num>
- <animal.upper()><action.title()><num>