Finished learning about the random module in python
Started working on the Magic8Ball program
Homework:
Convert the above magic 8 ball program by using lists and r.choice instead of randint. DON’T USE RANDINT().
And add the other 4 answers to the if blocks:
“Of course not”, “Try again later”, “Don’t count on it”, “Tt is certain”
If you have any questions, feel free to email me at nathaniel@ayclogic.com
This site uses cookies to understand your visit and improve future outreach. We do not sell personal data.
Functional
Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
We use limited cookies and tracking tools (like Meta Pixel) to understand which visitors are interested in our coding programs. If you submit your contact info, we may use it to create lookalike audiences to reach more families on platforms like Meta. We do not sell your personal data, and we do not show ads on this website. You can learn more or opt out of data sharing by visiting our [Privacy Policy] and [Do Not Sell or Share My Info] page.