« All Events
10 AM – Indo – Intro To Python – Gamas
February 18, 2023 @ 10:00 am - 11:00 am
Homework
- Continue on Feb18_Magic8BallV1.py. Change the code so it can the program can provide more 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.
- Optional homework. But if you do it correctly, I will increase 10% of your 1st quiz grade. 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>