So. It has been quite a while since I posted on my blog. I have decided I am not only going to post stuff about coding and cars, although I will have quite a bit of content about coding and cars still.
Here's what has been going on this week. Nothing much. OH WAIT, I FORGOT! There is a wunkahead in our house. Wunkahead is a dog from the ICAN program. If you want to know what ICAN is, ask Penny. She will gladly tell you. Don't get me wrong, wunkahead (aka Nugget) is a great dog. She just is, well, a wunkahead. 😜
Coding... I guess you could say I figured out the IDE? I still have no clue how to get all the packages to work, but I have found out that using an IDE helps make it easier to code.
Today's code:
import random
import time
#Magic 8 ball
#Variables
Answers = ['It is certain.', 'Yes.', 'No.', 'I will have to mull it over.',
'Never.', 'Definitely.', 'Of course.', 'Of course not.', 'I think so.', 'Maybe later.',
'Yes.', 'Never.', 'Mmm.', 'No.']
Answer = random.choice(Answers)
print('I am the magical 8 ball.')
time.sleep(0.5)
Question = input('Give me a quesion.')
print('...')
time.sleep(1)
print(Answer)
time.sleep(3)
No comments:
Post a Comment